Skip to content

Commit 656eb01

Browse files
simplify trait bound
1 parent 9cb2a76 commit 656eb01

File tree

12 files changed

+17
-17
lines changed

12 files changed

+17
-17
lines changed

src/collections/binary_heap/extend.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::prelude::*;
55
use crate::stream::{self, IntoStream};
66

77
impl<T: Ord + Send> stream::Extend<T> for BinaryHeap<T> {
8-
fn extend<'a, S: IntoStream<Item = T> + 'a + Send>(
8+
fn extend<'a, S: IntoStream<Item = T> + 'a>(
99
&'a mut self,
1010
stream: S,
1111
) -> Pin<Box<dyn Future<Output = ()> + 'a + Send>>

src/collections/btree_map/extend.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::prelude::*;
55
use crate::stream::{self, IntoStream};
66

77
impl<K: Ord + Send, V: Send> stream::Extend<(K, V)> for BTreeMap<K, V> {
8-
fn extend<'a, S: IntoStream<Item = (K, V)> + 'a + Send>(
8+
fn extend<'a, S: IntoStream<Item = (K, V)> + 'a>(
99
&'a mut self,
1010
stream: S,
1111
) -> Pin<Box<dyn Future<Output = ()> + 'a + Send>>

src/collections/btree_set/extend.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::prelude::*;
55
use crate::stream::{self, IntoStream};
66

77
impl<T: Ord + Send> stream::Extend<T> for BTreeSet<T> {
8-
fn extend<'a, S: IntoStream<Item = T> + 'a + Send>(
8+
fn extend<'a, S: IntoStream<Item = T> + 'a>(
99
&'a mut self,
1010
stream: S,
1111
) -> Pin<Box<dyn Future<Output = ()> + 'a + Send>>

src/collections/hash_map/extend.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ where
1111
V: Send,
1212
H: BuildHasher + Default + Send,
1313
{
14-
fn extend<'a, S: IntoStream<Item = (K, V)> + 'a + Send>(
14+
fn extend<'a, S: IntoStream<Item = (K, V)> + 'a>(
1515
&'a mut self,
1616
stream: S,
1717
) -> Pin<Box<dyn Future<Output = ()> + 'a + Send>>

src/collections/hash_set/extend.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ where
1010
T: Eq + Hash + Send,
1111
H: BuildHasher + Default + Send,
1212
{
13-
fn extend<'a, S: IntoStream<Item = T> + 'a + Send>(
13+
fn extend<'a, S: IntoStream<Item = T> + 'a>(
1414
&'a mut self,
1515
stream: S,
1616
) -> Pin<Box<dyn Future<Output = ()> + 'a + Send>>

src/collections/linked_list/extend.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::prelude::*;
55
use crate::stream::{self, IntoStream};
66

77
impl<T: Send> stream::Extend<T> for LinkedList<T> {
8-
fn extend<'a, S: IntoStream<Item = T> + 'a + Send>(
8+
fn extend<'a, S: IntoStream<Item = T> + 'a>(
99
&'a mut self,
1010
stream: S,
1111
) -> Pin<Box<dyn Future<Output = ()> + 'a + Send>>

src/collections/vec_deque/extend.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::prelude::*;
55
use crate::stream::{self, IntoStream};
66

77
impl<T: Send> stream::Extend<T> for VecDeque<T> {
8-
fn extend<'a, S: IntoStream<Item = T> + 'a + Send>(
8+
fn extend<'a, S: IntoStream<Item = T> + 'a>(
99
&'a mut self,
1010
stream: S,
1111
) -> Pin<Box<dyn Future<Output = ()> + 'a + Send>>

src/path/pathbuf.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ impl AsRef<OsStr> for PathBuf {
320320

321321
#[cfg(feature = "unstable")]
322322
impl<P: AsRef<Path>> stream::Extend<P> for PathBuf {
323-
fn extend<'a, S: IntoStream<Item = P> + 'a + Send>(
323+
fn extend<'a, S: IntoStream<Item = P> + 'a>(
324324
&'a mut self,
325325
stream: S,
326326
) -> Pin<Box<dyn Future<Output = ()> + 'a + Send>>

src/stream/extend.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use crate::stream::IntoStream;
3131
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
3232
pub trait Extend<A> {
3333
/// Extends a collection with the contents of a stream.
34-
fn extend<'a, T: IntoStream<Item = A> + 'a + Send>(
34+
fn extend<'a, T: IntoStream<Item = A> + 'a>(
3535
&'a mut self,
3636
stream: T,
3737
) -> Pin<Box<dyn Future<Output = ()> + 'a + Send>>
@@ -70,7 +70,7 @@ pub trait Extend<A> {
7070
pub async fn extend<'a, C, T, S>(collection: &mut C, stream: S)
7171
where
7272
C: Extend<T>,
73-
S: IntoStream<Item = T> + 'a + Send,
73+
S: IntoStream<Item = T> + 'a,
7474
<S as IntoStream>::IntoStream: Send,
7575
{
7676
Extend::extend(collection, stream).await

src/string/extend.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::prelude::*;
55
use crate::stream::{self, IntoStream};
66

77
impl stream::Extend<char> for String {
8-
fn extend<'a, S: IntoStream<Item = char> + 'a + Send>(
8+
fn extend<'a, S: IntoStream<Item = char> + 'a>(
99
&'a mut self,
1010
stream: S,
1111
) -> Pin<Box<dyn Future<Output = ()> + 'a + Send>>
@@ -26,7 +26,7 @@ impl stream::Extend<char> for String {
2626
}
2727

2828
impl<'b> stream::Extend<&'b char> for String {
29-
fn extend<'a, S: IntoStream<Item = &'b char> + 'a + Send>(
29+
fn extend<'a, S: IntoStream<Item = &'b char> + 'a>(
3030
&'a mut self,
3131
stream: S,
3232
) -> Pin<Box<dyn Future<Output = ()> + 'a + Send>>
@@ -46,7 +46,7 @@ impl<'b> stream::Extend<&'b char> for String {
4646
}
4747

4848
impl<'b> stream::Extend<&'b str> for String {
49-
fn extend<'a, S: IntoStream<Item = &'b str> + 'a + Send>(
49+
fn extend<'a, S: IntoStream<Item = &'b str> + 'a>(
5050
&'a mut self,
5151
stream: S,
5252
) -> Pin<Box<dyn Future<Output = ()> + 'a + Send>>
@@ -66,7 +66,7 @@ impl<'b> stream::Extend<&'b str> for String {
6666
}
6767

6868
impl stream::Extend<String> for String {
69-
fn extend<'a, S: IntoStream<Item = String> + 'a + Send>(
69+
fn extend<'a, S: IntoStream<Item = String> + 'a>(
7070
&'a mut self,
7171
stream: S,
7272
) -> Pin<Box<dyn Future<Output = ()> + 'a + Send>>
@@ -86,7 +86,7 @@ impl stream::Extend<String> for String {
8686
}
8787

8888
impl<'b> stream::Extend<Cow<'b, str>> for String {
89-
fn extend<'a, S: IntoStream<Item = Cow<'b, str>> + 'a + Send>(
89+
fn extend<'a, S: IntoStream<Item = Cow<'b, str>> + 'a>(
9090
&'a mut self,
9191
stream: S,
9292
) -> Pin<Box<dyn Future<Output = ()> + 'a + Send>>

src/unit/extend.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::prelude::*;
44
use crate::stream::{self, IntoStream};
55

66
impl stream::Extend<()> for () {
7-
fn extend<'a, S: IntoStream<Item = ()> + 'a + Send>(
7+
fn extend<'a, S: IntoStream<Item = ()> + 'a>(
88
&'a mut self,
99
stream: S,
1010
) -> Pin<Box<dyn Future<Output = ()> + 'a + Send>>

src/vec/extend.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::prelude::*;
44
use crate::stream::{self, IntoStream};
55

66
impl<T: Send> stream::Extend<T> for Vec<T> {
7-
fn extend<'a, S: IntoStream<Item = T> + 'a + Send>(
7+
fn extend<'a, S: IntoStream<Item = T> + 'a>(
88
&'a mut self,
99
stream: S,
1010
) -> Pin<Box<dyn Future<Output = ()> + 'a + Send>>

0 commit comments

Comments
 (0)