From ab14c50d1cd165982007e1bf4ff49c9a242f2494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 14 Jan 2022 11:25:49 +0200 Subject: [PATCH] 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 --- .gitlab-ci.yml | 6 +++--- audio/audiofx/src/lib.rs | 1 + audio/claxon/src/lib.rs | 1 + audio/csound/src/lib.rs | 1 + audio/lewton/src/lib.rs | 1 + audio/spotify/src/lib.rs | 1 + generic/file/src/lib.rs | 1 + generic/fmp4/src/lib.rs | 1 + generic/sodium/src/lib.rs | 1 + generic/threadshare/src/lib.rs | 1 + generic/threadshare/tests/pad.rs | 1 + net/hlssink3/src/lib.rs | 1 + net/reqwest/src/lib.rs | 1 + net/reqwest/tests/reqwesthttpsrc.rs | 1 + net/rusoto/src/lib.rs | 1 + text/ahead/src/lib.rs | 1 + text/json/src/lib.rs | 2 +- text/regex/src/lib.rs | 2 +- text/wrap/src/lib.rs | 2 +- tutorial/src/lib.rs | 1 + utils/fallbackswitch/src/lib.rs | 1 + utils/togglerecord/src/lib.rs | 1 + utils/uriplaylistbin/src/lib.rs | 1 + video/cdg/src/lib.rs | 1 + video/closedcaption/src/lib.rs | 2 +- video/dav1d/src/lib.rs | 1 + video/ffv1/src/lib.rs | 1 + video/flavors/src/lib.rs | 1 + video/gif/src/lib.rs | 1 + video/gtk4/src/lib.rs | 1 + video/hsv/src/lib.rs | 1 + video/rav1e/src/lib.rs | 1 + video/rspng/src/lib.rs | 1 + video/videofx/src/lib.rs | 1 + video/webp/src/lib.rs | 1 + 35 files changed, 37 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eed4090e..54221e93 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 dcf2b177..f7f64587 100644 --- a/audio/audiofx/src/lib.rs +++ b/audio/audiofx/src/lib.rs @@ -5,6 +5,7 @@ // , 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 2476b877..215d2c56 100644 --- a/audio/claxon/src/lib.rs +++ b/audio/claxon/src/lib.rs @@ -5,6 +5,7 @@ // , 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 1e920fbe..04a6ac8f 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 da5bb434..b6e68a8e 100644 --- a/audio/lewton/src/lib.rs +++ b/audio/lewton/src/lib.rs @@ -5,6 +5,7 @@ // , 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 b9c9dd8b..72771b28 100644 --- a/audio/spotify/src/lib.rs +++ b/audio/spotify/src/lib.rs @@ -5,6 +5,7 @@ // . // // 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 04fff665..a99d3d1b 100644 --- a/generic/file/src/lib.rs +++ b/generic/file/src/lib.rs @@ -5,6 +5,7 @@ // , 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 dfd77114..7832bf99 100644 --- a/generic/fmp4/src/lib.rs +++ b/generic/fmp4/src/lib.rs @@ -5,6 +5,7 @@ // . // // 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 12bee785..69b5b703 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 a216d2a8..e9b5a9dc 100644 --- a/generic/threadshare/src/lib.rs +++ b/generic/threadshare/src/lib.rs @@ -1,6 +1,7 @@ // Copyright (C) 2018 Sebastian Dröge // // 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 3e44bec6..d49512ca 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 f5784988..c30425f9 100644 --- a/net/hlssink3/src/lib.rs +++ b/net/hlssink3/src/lib.rs @@ -6,6 +6,7 @@ // . // // 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 915c62ea..e5d41728 100644 --- a/net/reqwest/src/lib.rs +++ b/net/reqwest/src/lib.rs @@ -5,6 +5,7 @@ // , 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 b42f0e51..1d4a5141 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 f7da3c04..087c57e5 100644 --- a/net/rusoto/src/lib.rs +++ b/net/rusoto/src/lib.rs @@ -5,6 +5,7 @@ // , 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 c9df7708..003ce7f5 100644 --- a/text/ahead/src/lib.rs +++ b/text/ahead/src/lib.rs @@ -5,6 +5,7 @@ // . // // 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 2187b236..54d7897a 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 ae781132..d6e9bd94 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 3dc8b201..e8b5726d 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 83fb8eac..e43d7e7c 100644 --- a/tutorial/src/lib.rs +++ b/tutorial/src/lib.rs @@ -5,6 +5,7 @@ // , 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 39f18def..0c5b1c8c 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 ef20fe77..5827ee26 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 d2752153..4ab225ba 100644 --- a/utils/uriplaylistbin/src/lib.rs +++ b/utils/uriplaylistbin/src/lib.rs @@ -5,6 +5,7 @@ // . // // 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 5e5e1e14..8a780fda 100644 --- a/video/cdg/src/lib.rs +++ b/video/cdg/src/lib.rs @@ -5,6 +5,7 @@ // , 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 0706e629..a15c2f46 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 53311608..12e628a8 100644 --- a/video/dav1d/src/lib.rs +++ b/video/dav1d/src/lib.rs @@ -5,6 +5,7 @@ // , 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 1e9190bf..ca52eb17 100644 --- a/video/ffv1/src/lib.rs +++ b/video/ffv1/src/lib.rs @@ -5,6 +5,7 @@ // , 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 15459777..1ef57303 100644 --- a/video/flavors/src/lib.rs +++ b/video/flavors/src/lib.rs @@ -5,6 +5,7 @@ // , 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 2c8e7f4a..7caa3ee5 100644 --- a/video/gif/src/lib.rs +++ b/video/gif/src/lib.rs @@ -5,6 +5,7 @@ // , 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 2133ce92..575ba5b2 100644 --- a/video/gtk4/src/lib.rs +++ b/video/gtk4/src/lib.rs @@ -8,6 +8,7 @@ // . // // 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 fd3f63b9..33053223 100644 --- a/video/hsv/src/lib.rs +++ b/video/hsv/src/lib.rs @@ -5,6 +5,7 @@ // , 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 9a0db00c..90f18971 100644 --- a/video/rav1e/src/lib.rs +++ b/video/rav1e/src/lib.rs @@ -5,6 +5,7 @@ // , 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 37ab4edc..abd644a3 100644 --- a/video/rspng/src/lib.rs +++ b/video/rspng/src/lib.rs @@ -5,6 +5,7 @@ // , 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 44632962..1eeef67a 100644 --- a/video/videofx/src/lib.rs +++ b/video/videofx/src/lib.rs @@ -6,6 +6,7 @@ // . // // 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 139974f0..8a1d5029 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;