@@ -3,10 +3,6 @@ use futures_core::task::{Context, Poll};
33use  futures_sink:: Sink ; 
44use  core:: fmt; 
55use  core:: pin:: Pin ; 
6- #[ cfg( feature = "std" ) ]  
7- use  std:: any:: Any ; 
8- #[ cfg( feature = "std" ) ]  
9- use  std:: error:: Error ; 
106
117use  crate :: lock:: BiLock ; 
128
@@ -47,12 +43,12 @@ fn SplitSink<S: Sink<Item>, Item>(lock: BiLock<S>) -> SplitSink<S, Item> {
4743/// A `Sink` part of the split pair 
4844#[ derive( Debug ) ]  
4945#[ must_use = "sinks do nothing unless polled" ]  
50- pub  struct  SplitSink < S :   Sink < Item > ,  Item >  { 
46+ pub  struct  SplitSink < S ,  Item >  { 
5147    lock :  BiLock < S > , 
5248    slot :  Option < Item > , 
5349} 
5450
55- impl < S :   Sink < Item > ,  Item >  Unpin  for  SplitSink < S ,  Item >  { } 
51+ impl < S ,  Item >  Unpin  for  SplitSink < S ,  Item >  { } 
5652
5753impl < S :  Sink < Item >  + Unpin ,  Item >  SplitSink < S ,  Item >  { 
5854    /// Attempts to put the two "halves" of a split `Stream + Sink` back 
@@ -112,21 +108,21 @@ pub(super) fn split<S: Stream + Sink<Item>, Item>(s: S) -> (SplitSink<S, Item>,
112108
113109/// Error indicating a `SplitSink<S>` and `SplitStream<S>` were not two halves 
114110/// of a `Stream + Split`, and thus could not be `reunite`d. 
115- pub  struct  ReuniteError < T :   Sink < Item > ,  Item > ( pub  SplitSink < T ,  Item > ,  pub  SplitStream < T > ) ; 
111+ pub  struct  ReuniteError < T ,  Item > ( pub  SplitSink < T ,  Item > ,  pub  SplitStream < T > ) ; 
116112
117- impl < T :   Sink < Item > ,  Item >  fmt:: Debug  for  ReuniteError < T ,  Item >  { 
113+ impl < T ,  Item >  fmt:: Debug  for  ReuniteError < T ,  Item >  { 
118114    fn  fmt ( & self ,  f :  & mut  fmt:: Formatter < ' _ > )  -> fmt:: Result  { 
119115        f. debug_tuple ( "ReuniteError" ) 
120116            . field ( & "..." ) 
121117            . finish ( ) 
122118    } 
123119} 
124120
125- impl < T :   Sink < Item > ,  Item >  fmt:: Display  for  ReuniteError < T ,  Item >  { 
121+ impl < T ,  Item >  fmt:: Display  for  ReuniteError < T ,  Item >  { 
126122    fn  fmt ( & self ,  f :  & mut  fmt:: Formatter < ' _ > )  -> fmt:: Result  { 
127123        write ! ( f,  "tried to reunite a SplitStream and SplitSink that don't form a pair" ) 
128124    } 
129125} 
130126
131127#[ cfg( feature = "std" ) ]  
132- impl < T :  Any  +  Sink < Item > ,  Item >  Error  for  ReuniteError < T ,  Item >  { } 
128+ impl < T :  core :: any :: Any ,  Item >  std :: error :: Error  for  ReuniteError < T ,  Item >  { } 
0 commit comments