forked from mirrors/gstreamer-rs
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<Item = Message> + 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<Item = Message> + Unpin + FusedStream + Send + 'a { 314 + ) -> impl Unpin + FusedStream<Item = Message> + Send + 'a { | Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1383>
This commit is contained in:
parent
8230a7ccba
commit
a51b5bdfd3
1 changed files with 1 additions and 1 deletions
|
@ -311,7 +311,7 @@ impl Bus {
|
||||||
pub fn stream_filtered<'a>(
|
pub fn stream_filtered<'a>(
|
||||||
&self,
|
&self,
|
||||||
message_types: &'a [MessageType],
|
message_types: &'a [MessageType],
|
||||||
) -> impl Stream<Item = Message> + Unpin + FusedStream + Send + 'a {
|
) -> impl FusedStream<Item = Message> + Unpin + Send + 'a {
|
||||||
self.stream().filter(move |message| {
|
self.stream().filter(move |message| {
|
||||||
let message_type = message.type_();
|
let message_type = message.type_();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue