diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2022-01-14 12:25:49 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2022-01-14 13:09:57 +0300 |
commit | ab14c50d1cd165982007e1bf4ff49c9a242f2494 (patch) | |
tree | 2e74ae9bab33f91d2d41b4c567e90fcc74ac42d3 | |
parent | 3cc2b3275671b3ca66818fd5765f721914711696 (diff) |
Ignore `clippy::non_send_fields_in_send_ty` lint
It's useless in its current shape and wrongly triggering on all types.
See https://github.com/rust-lang/rust-clippy/issues/8045
35 files changed, 37 insertions, 7 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eed4090e6..54221e938 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -43,19 +43,19 @@ stages: .debian:11-stable: extends: .debian:11 variables: - FDO_DISTRIBUTION_TAG: '$GST_RS_STABLE-${GST_RS_IMG_TAG}_2022-01-12.0' + FDO_DISTRIBUTION_TAG: '$GST_RS_STABLE-${GST_RS_IMG_TAG}_2022-01-13.0' FDO_BASE_IMAGE: "registry.freedesktop.org/gstreamer/gstreamer-rs/debian/bullseye-slim:$GST_RS_STABLE-$GST_RS_IMG_TAG" .debian:11-msrv: extends: .debian:11 variables: - FDO_DISTRIBUTION_TAG: '$GST_RS_MSRV-${GST_RS_IMG_TAG}_2022-01-12.0' + FDO_DISTRIBUTION_TAG: '$GST_RS_MSRV-${GST_RS_IMG_TAG}_2022-01-13.0' FDO_BASE_IMAGE: "registry.freedesktop.org/gstreamer/gstreamer-rs/debian/bullseye-slim:$GST_RS_MSRV-$GST_RS_IMG_TAG" .debian:11-nightly: extends: .debian:11 variables: - FDO_DISTRIBUTION_TAG: 'nightly-${GST_RS_IMG_TAG}_2022-01-12.0' + FDO_DISTRIBUTION_TAG: 'nightly-${GST_RS_IMG_TAG}_2022-01-13.0' FDO_BASE_IMAGE: "registry.freedesktop.org/gstreamer/gstreamer-rs/debian/bullseye-slim:nightly-$GST_RS_IMG_TAG" .build-debian-container: diff --git a/audio/audiofx/src/lib.rs b/audio/audiofx/src/lib.rs index dcf2b1770..f7f64587e 100644 --- a/audio/audiofx/src/lib.rs +++ b/audio/audiofx/src/lib.rs @@ -5,6 +5,7 @@ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(clippy::non_send_fields_in_send_ty)] use gst::glib; diff --git a/audio/claxon/src/lib.rs b/audio/claxon/src/lib.rs index 2476b877c..215d2c56d 100644 --- a/audio/claxon/src/lib.rs +++ b/audio/claxon/src/lib.rs @@ -5,6 +5,7 @@ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(clippy::non_send_fields_in_send_ty)] use gst::glib; diff --git a/audio/csound/src/lib.rs b/audio/csound/src/lib.rs index 1e920fbe1..04a6ac8f4 100644 --- a/audio/csound/src/lib.rs +++ b/audio/csound/src/lib.rs @@ -14,6 +14,7 @@ // License along with this library; if not, write to the // Free Software Foundation, Inc., 51 Franklin Street, Suite 500, // Boston, MA 02110-1335, USA. +#![allow(clippy::non_send_fields_in_send_ty)] use gst::glib; diff --git a/audio/lewton/src/lib.rs b/audio/lewton/src/lib.rs index da5bb434d..b6e68a8ef 100644 --- a/audio/lewton/src/lib.rs +++ b/audio/lewton/src/lib.rs @@ -5,6 +5,7 @@ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(clippy::non_send_fields_in_send_ty)] use gst::glib; diff --git a/audio/spotify/src/lib.rs b/audio/spotify/src/lib.rs index b9c9dd8bc..72771b28e 100644 --- a/audio/spotify/src/lib.rs +++ b/audio/spotify/src/lib.rs @@ -5,6 +5,7 @@ // <https://mozilla.org/MPL/2.0/>. // // SPDX-License-Identifier: MPL-2.0 +#![allow(clippy::non_send_fields_in_send_ty)] use gst::glib; diff --git a/generic/file/src/lib.rs b/generic/file/src/lib.rs index 04fff665d..a99d3d1b8 100644 --- a/generic/file/src/lib.rs +++ b/generic/file/src/lib.rs @@ -5,6 +5,7 @@ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(clippy::non_send_fields_in_send_ty)] use gst::glib; diff --git a/generic/fmp4/src/lib.rs b/generic/fmp4/src/lib.rs index dfd771140..7832bf999 100644 --- a/generic/fmp4/src/lib.rs +++ b/generic/fmp4/src/lib.rs @@ -5,6 +5,7 @@ // <https://mozilla.org/MPL/2.0/>. // // SPDX-License-Identifier: MPL-2.0 +#![allow(clippy::non_send_fields_in_send_ty)] use gst::glib; diff --git a/generic/sodium/src/lib.rs b/generic/sodium/src/lib.rs index 12bee785f..69b5b7032 100644 --- a/generic/sodium/src/lib.rs +++ b/generic/sodium/src/lib.rs @@ -19,6 +19,7 @@ // IN THE SOFTWARE. // // SPDX-License-Identifier: MIT +#![allow(clippy::non_send_fields_in_send_ty)] use gst::glib; diff --git a/generic/threadshare/src/lib.rs b/generic/threadshare/src/lib.rs index a216d2a83..e9b5a9dc2 100644 --- a/generic/threadshare/src/lib.rs +++ b/generic/threadshare/src/lib.rs @@ -1,6 +1,7 @@ // Copyright (C) 2018 Sebastian Dröge <sebastian@centricular.com> // // Take a look at the license at the top of the repository in the LICENSE file. +#![allow(clippy::non_send_fields_in_send_ty)] //! A collection of GStreamer plugins which leverage the `threadshare` [`runtime`]. //! diff --git a/generic/threadshare/tests/pad.rs b/generic/threadshare/tests/pad.rs index 3e44bec66..d49512ca3 100644 --- a/generic/threadshare/tests/pad.rs +++ b/generic/threadshare/tests/pad.rs @@ -15,6 +15,7 @@ // License along with this library; if not, write to the // Free Software Foundation, Inc., 51 Franklin Street, Suite 500, // Boston, MA 02110-1335, USA. +#![allow(clippy::non_send_fields_in_send_ty)] use futures::channel::mpsc; use futures::future::BoxFuture; diff --git a/net/hlssink3/src/lib.rs b/net/hlssink3/src/lib.rs index f5784988f..c30425f97 100644 --- a/net/hlssink3/src/lib.rs +++ b/net/hlssink3/src/lib.rs @@ -6,6 +6,7 @@ // <https://mozilla.org/MPL/2.0/>. // // SPDX-License-Identifier: MPL-2.0 +#![allow(clippy::non_send_fields_in_send_ty)] use glib::prelude::*; diff --git a/net/reqwest/src/lib.rs b/net/reqwest/src/lib.rs index 915c62eab..e5d41728e 100644 --- a/net/reqwest/src/lib.rs +++ b/net/reqwest/src/lib.rs @@ -5,6 +5,7 @@ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(clippy::non_send_fields_in_send_ty)] use gst::glib; diff --git a/net/reqwest/tests/reqwesthttpsrc.rs b/net/reqwest/tests/reqwesthttpsrc.rs index b42f0e510..1d4a5141c 100644 --- a/net/reqwest/tests/reqwesthttpsrc.rs +++ b/net/reqwest/tests/reqwesthttpsrc.rs @@ -35,6 +35,7 @@ struct Harness { } /// Messages sent from our test harness +#[allow(clippy::enum_variant_names)] #[derive(Debug, Clone)] enum Message { Buffer(gst::Buffer), diff --git a/net/rusoto/src/lib.rs b/net/rusoto/src/lib.rs index f7da3c043..087c57e57 100644 --- a/net/rusoto/src/lib.rs +++ b/net/rusoto/src/lib.rs @@ -5,6 +5,7 @@ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(clippy::non_send_fields_in_send_ty)] use gst::glib; diff --git a/text/ahead/src/lib.rs b/text/ahead/src/lib.rs index c9df77083..003ce7f58 100644 --- a/text/ahead/src/lib.rs +++ b/text/ahead/src/lib.rs @@ -5,6 +5,7 @@ // <https://mozilla.org/MPL/2.0/>. // // SPDX-License-Identifier: MPL-2.0 +#![allow(clippy::non_send_fields_in_send_ty)] use gst::glib; diff --git a/text/json/src/lib.rs b/text/json/src/lib.rs index 2187b2365..54d7897a8 100644 --- a/text/json/src/lib.rs +++ b/text/json/src/lib.rs @@ -14,7 +14,7 @@ // License along with this library; if not, write to the // Free Software Foundation, Inc., 51 Franklin Street, Suite 500, // Boston, MA 02110-1335, USA. - +#![allow(clippy::non_send_fields_in_send_ty)] #![recursion_limit = "128"] use gst::glib; diff --git a/text/regex/src/lib.rs b/text/regex/src/lib.rs index ae781132e..d6e9bd942 100644 --- a/text/regex/src/lib.rs +++ b/text/regex/src/lib.rs @@ -14,7 +14,7 @@ // License along with this library; if not, write to the // Free Software Foundation, Inc., 51 Franklin Street, Suite 500, // Boston, MA 02110-1335, USA. - +#![allow(clippy::non_send_fields_in_send_ty)] #![recursion_limit = "128"] use gst::glib; diff --git a/text/wrap/src/lib.rs b/text/wrap/src/lib.rs index 3dc8b2012..e8b5726d0 100644 --- a/text/wrap/src/lib.rs +++ b/text/wrap/src/lib.rs @@ -14,7 +14,7 @@ // License along with this library; if not, write to the // Free Software Foundation, Inc., 51 Franklin Street, Suite 500, // Boston, MA 02110-1335, USA. - +#![allow(clippy::non_send_fields_in_send_ty)] #![recursion_limit = "128"] use gst::glib; diff --git a/tutorial/src/lib.rs b/tutorial/src/lib.rs index 83fb8eac0..e43d7e7cf 100644 --- a/tutorial/src/lib.rs +++ b/tutorial/src/lib.rs @@ -5,6 +5,7 @@ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(clippy::non_send_fields_in_send_ty)] use gst::glib; diff --git a/utils/fallbackswitch/src/lib.rs b/utils/fallbackswitch/src/lib.rs index 39f18defb..0c5b1c8c4 100644 --- a/utils/fallbackswitch/src/lib.rs +++ b/utils/fallbackswitch/src/lib.rs @@ -14,6 +14,7 @@ // License along with this library; if not, write to the // Free Software Foundation, Inc., 51 Franklin Street, Suite 500, // Boston, MA 02110-1335, USA. +#![allow(clippy::non_send_fields_in_send_ty)] use gst::glib; diff --git a/utils/togglerecord/src/lib.rs b/utils/togglerecord/src/lib.rs index ef20fe77b..5827ee268 100644 --- a/utils/togglerecord/src/lib.rs +++ b/utils/togglerecord/src/lib.rs @@ -14,6 +14,7 @@ // License along with this library; if not, write to the // Free Software Foundation, Inc., 51 Franklin Street, Suite 500, // Boston, MA 02110-1335, USA. +#![allow(clippy::non_send_fields_in_send_ty)] use gst::glib; diff --git a/utils/uriplaylistbin/src/lib.rs b/utils/uriplaylistbin/src/lib.rs index d2752153b..4ab225ba7 100644 --- a/utils/uriplaylistbin/src/lib.rs +++ b/utils/uriplaylistbin/src/lib.rs @@ -5,6 +5,7 @@ // <https://mozilla.org/MPL/2.0/>. // // SPDX-License-Identifier: MPL-2.0 +#![allow(clippy::non_send_fields_in_send_ty)] use gst::glib; diff --git a/video/cdg/src/lib.rs b/video/cdg/src/lib.rs index 5e5e1e14c..8a780fdac 100644 --- a/video/cdg/src/lib.rs +++ b/video/cdg/src/lib.rs @@ -5,6 +5,7 @@ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(clippy::non_send_fields_in_send_ty)] use gst::glib; diff --git a/video/closedcaption/src/lib.rs b/video/closedcaption/src/lib.rs index 0706e6297..a15c2f46e 100644 --- a/video/closedcaption/src/lib.rs +++ b/video/closedcaption/src/lib.rs @@ -14,7 +14,7 @@ // License along with this library; if not, write to the // Free Software Foundation, Inc., 51 Franklin Street, Suite 500, // Boston, MA 02110-1335, USA. - +#![allow(clippy::non_send_fields_in_send_ty)] #![recursion_limit = "128"] use gst::glib; diff --git a/video/dav1d/src/lib.rs b/video/dav1d/src/lib.rs index 53311608b..12e628a87 100644 --- a/video/dav1d/src/lib.rs +++ b/video/dav1d/src/lib.rs @@ -5,6 +5,7 @@ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(clippy::non_send_fields_in_send_ty)] use gst::glib; diff --git a/video/ffv1/src/lib.rs b/video/ffv1/src/lib.rs index 1e9190bff..ca52eb17b 100644 --- a/video/ffv1/src/lib.rs +++ b/video/ffv1/src/lib.rs @@ -5,6 +5,7 @@ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(clippy::non_send_fields_in_send_ty)] mod ffv1dec; diff --git a/video/flavors/src/lib.rs b/video/flavors/src/lib.rs index 154597771..1ef573035 100644 --- a/video/flavors/src/lib.rs +++ b/video/flavors/src/lib.rs @@ -5,6 +5,7 @@ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(clippy::non_send_fields_in_send_ty)] use gst::glib; diff --git a/video/gif/src/lib.rs b/video/gif/src/lib.rs index 2c8e7f4a1..7caa3ee59 100644 --- a/video/gif/src/lib.rs +++ b/video/gif/src/lib.rs @@ -5,6 +5,7 @@ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(clippy::non_send_fields_in_send_ty)] use gst::glib; diff --git a/video/gtk4/src/lib.rs b/video/gtk4/src/lib.rs index 2133ce924..575ba5b29 100644 --- a/video/gtk4/src/lib.rs +++ b/video/gtk4/src/lib.rs @@ -8,6 +8,7 @@ // <https://mozilla.org/MPL/2.0/>. // // SPDX-License-Identifier: MPL-2.0 +#![allow(clippy::non_send_fields_in_send_ty)] use gst::glib; diff --git a/video/hsv/src/lib.rs b/video/hsv/src/lib.rs index fd3f63b91..33053223c 100644 --- a/video/hsv/src/lib.rs +++ b/video/hsv/src/lib.rs @@ -5,6 +5,7 @@ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(clippy::non_send_fields_in_send_ty)] use gst::glib; diff --git a/video/rav1e/src/lib.rs b/video/rav1e/src/lib.rs index 9a0db00cb..90f18971b 100644 --- a/video/rav1e/src/lib.rs +++ b/video/rav1e/src/lib.rs @@ -5,6 +5,7 @@ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(clippy::non_send_fields_in_send_ty)] use gst::glib; diff --git a/video/rspng/src/lib.rs b/video/rspng/src/lib.rs index 37ab4edc9..abd644a39 100644 --- a/video/rspng/src/lib.rs +++ b/video/rspng/src/lib.rs @@ -5,6 +5,7 @@ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(clippy::non_send_fields_in_send_ty)] use gst::glib; diff --git a/video/videofx/src/lib.rs b/video/videofx/src/lib.rs index 446329622..1eeef67ae 100644 --- a/video/videofx/src/lib.rs +++ b/video/videofx/src/lib.rs @@ -6,6 +6,7 @@ // <https://mozilla.org/MPL/2.0/>. // // SPDX-License-Identifier: MPL-2.0 +#![allow(clippy::non_send_fields_in_send_ty)] mod border; diff --git a/video/webp/src/lib.rs b/video/webp/src/lib.rs index 139974f0e..8a1d50298 100644 --- a/video/webp/src/lib.rs +++ b/video/webp/src/lib.rs @@ -14,6 +14,7 @@ // License along with this library; if not, write to the // Free Software Foundation, Inc., 51 Franklin Street, Suite 500, // Boston, MA 02110-1335, USA. +#![allow(clippy::non_send_fields_in_send_ty)] use gst::glib; |