From a51b5bdfd3296cb721ffc6ade30a1c1ace59b92d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 5 Feb 2024 12:07:15 +0200 Subject: [PATCH] Fix a new clippy warning warning: this bound is already specified as the supertrait of `FusedStream` --> gstreamer/src/bus.rs:314:15 | 314 | ) -> impl Stream + Unpin + FusedStream + Send + 'a { | ^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implied_bounds_in_impls = note: `#[warn(clippy::implied_bounds_in_impls)]` on by default help: try removing this bound | 314 - ) -> impl Stream + Unpin + FusedStream + Send + 'a { 314 + ) -> impl Unpin + FusedStream + Send + 'a { | Part-of: --- gstreamer/src/bus.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gstreamer/src/bus.rs b/gstreamer/src/bus.rs index 400ed22c8..0775c896c 100644 --- a/gstreamer/src/bus.rs +++ b/gstreamer/src/bus.rs @@ -311,7 +311,7 @@ impl Bus { pub fn stream_filtered<'a>( &self, message_types: &'a [MessageType], - ) -> impl Stream + Unpin + FusedStream + Send + 'a { + ) -> impl FusedStream + Unpin + Send + 'a { self.stream().filter(move |message| { let message_type = message.type_();