File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ impl<W: AsyncWrite + Unpin> BufWriter<W> {
192
192
self . inner
193
193
}
194
194
195
- pub fn poll_into_inner ( mut self : Pin < & mut Self > , cx : Context < ' _ > ) -> Poll < io:: Result < usize > > {
195
+ pub fn poll_into_inner ( self : Pin < & mut Self > , _cx : Context < ' _ > ) -> Poll < io:: Result < usize > > {
196
196
unimplemented ! ( "poll into inner method" )
197
197
}
198
198
@@ -218,7 +218,7 @@ impl<W: AsyncWrite + Unpin> BufWriter<W> {
218
218
}
219
219
220
220
221
- pub fn poll_flush_buf ( mut self : Pin < & mut Self > , cx : & mut Context < ' _ > ) -> Poll < io:: Result < ( ) > > {
221
+ pub fn poll_flush_buf ( self : Pin < & mut Self > , cx : & mut Context < ' _ > ) -> Poll < io:: Result < ( ) > > {
222
222
let Self {
223
223
inner,
224
224
buf,
@@ -374,7 +374,7 @@ impl<W: AsyncWrite + Unpin> AsyncWrite for LineWriter<W> {
374
374
return Poll :: Ready ( Ok ( n) ) ;
375
375
}
376
376
match ready ! ( self . inner( ) . poll_write( cx, & buf[ i + 1 ..] ) ) {
377
- Ok ( i ) => Poll :: Ready ( Ok ( n + 1 ) ) ,
377
+ Ok ( _ ) => Poll :: Ready ( Ok ( n + 1 ) ) ,
378
378
Err ( _) => Poll :: Ready ( Ok ( n) ) ,
379
379
}
380
380
}
You can’t perform that action at this time.
0 commit comments