Skip to content

Commit 396d527

Browse files
committed
Fix clippy::type_repetition_in_bounds
1 parent 78c5d85 commit 396d527

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

futures-util/src/compat/executor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ pub struct Executor01As03<Ex> {
6666
}
6767

6868
impl<Ex> Spawn03 for Executor01As03<Ex>
69-
where Ex: Executor01<Executor01Future>,
70-
Ex: Clone + Send + 'static,
69+
where
70+
Ex: Executor01<Executor01Future> + Clone + Send + 'static,
7171
{
7272
fn spawn_obj(
7373
&mut self,

futures-util/src/stream/zip.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pub struct Zip<St1: Stream, St2: Stream> {
1414
queued2: Option<St2::Item>,
1515
}
1616

17+
#[allow(clippy::type_repetition_in_bounds)] // https://github.com/rust-lang/rust-clippy/issues/4323
1718
impl<St1, St2> Unpin for Zip<St1, St2>
1819
where
1920
St1: Stream,

0 commit comments

Comments
 (0)