File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ impl RequestHandler {
167167 let mut easy = Easy2 :: new ( handler) ;
168168 easy. get_mut ( ) . handle = easy. raw ( ) ;
169169 let id = easy. get_ref ( ) . id ( ) ;
170- easy. get_mut ( ) . span . record ( "id" , id) ;
170+ easy. get_mut ( ) . span . record ( "id" , & id) ;
171171
172172 ( easy, future)
173173 }
Original file line number Diff line number Diff line change 240240 clippy:: all
241241) ]
242242// These lints suggest to use features not available in our MSRV.
243- #![ allow( clippy:: manual_strip, clippy:: match_like_matches_macro) ]
243+ #![ allow(
244+ clippy:: manual_strip,
245+ clippy:: match_like_matches_macro,
246+ clippy:: needless_borrow
247+ ) ]
244248
245249use std:: convert:: TryFrom ;
246250
Original file line number Diff line number Diff line change @@ -73,15 +73,15 @@ where
7373pub ( crate ) struct Sink ;
7474
7575impl AsyncWrite for Sink {
76- fn poll_write ( self : Pin < & mut Self > , _cx : & mut Context , buf : & [ u8 ] ) -> Poll < Result < usize > > {
76+ fn poll_write ( self : Pin < & mut Self > , _cx : & mut Context < ' _ > , buf : & [ u8 ] ) -> Poll < Result < usize > > {
7777 Poll :: Ready ( Ok ( buf. len ( ) ) )
7878 }
7979
80- fn poll_flush ( self : Pin < & mut Self > , _cx : & mut Context ) -> Poll < Result < ( ) > > {
80+ fn poll_flush ( self : Pin < & mut Self > , _cx : & mut Context < ' _ > ) -> Poll < Result < ( ) > > {
8181 Poll :: Ready ( Ok ( ( ) ) )
8282 }
8383
84- fn poll_close ( self : Pin < & mut Self > , _cx : & mut Context ) -> Poll < Result < ( ) > > {
84+ fn poll_close ( self : Pin < & mut Self > , _cx : & mut Context < ' _ > ) -> Poll < Result < ( ) > > {
8585 Poll :: Ready ( Ok ( ( ) ) )
8686 }
8787}
You can’t perform that action at this time.
0 commit comments