File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ pub trait Transport {
157
157
/// Boxes the transport, including custom transport errors.
158
158
fn boxed ( self ) -> boxed:: Boxed < Self :: Output >
159
159
where
160
- Self : Transport + Sized + Send + Sync + Unpin + ' static ,
160
+ Self : Transport + Sized + Send + Unpin + ' static ,
161
161
Self :: Dial : Send + ' static ,
162
162
Self :: ListenerUpgrade : Send + ' static ,
163
163
Self :: Error : Send + Sync ,
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ use std::{
31
31
/// Creates a new [`Boxed`] transport from the given transport.
32
32
pub fn boxed < T > ( transport : T ) -> Boxed < T :: Output >
33
33
where
34
- T : Transport + Send + Sync + Unpin + ' static ,
34
+ T : Transport + Send + Unpin + ' static ,
35
35
T :: Error : Send + Sync ,
36
36
T :: Dial : Send + ' static ,
37
37
T :: ListenerUpgrade : Send + ' static ,
45
45
/// and `ListenerUpgrade` futures are `Box`ed and only the `Output`
46
46
/// and `Error` types are captured in type variables.
47
47
pub struct Boxed < O > {
48
- inner : Box < dyn Abstract < O > + Send + Sync + Unpin > ,
48
+ inner : Box < dyn Abstract < O > + Send + Unpin > ,
49
49
}
50
50
51
51
type Dial < O > = Pin < Box < dyn Future < Output = io:: Result < O > > + Send > > ;
Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ impl<T> Multiplexed<T> {
295
295
/// the [`StreamMuxer`] and custom transport errors.
296
296
pub fn boxed < M > ( self ) -> super :: Boxed < ( PeerId , StreamMuxerBox ) >
297
297
where
298
- T : Transport < Output = ( PeerId , M ) > + Sized + Send + Sync + Unpin + ' static ,
298
+ T : Transport < Output = ( PeerId , M ) > + Sized + Send + Unpin + ' static ,
299
299
T :: Dial : Send + ' static ,
300
300
T :: ListenerUpgrade : Send + ' static ,
301
301
T :: Error : Send + Sync ,
You can’t perform that action at this time.
0 commit comments