File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -668,12 +668,12 @@ where
668668 }
669669 }
670670
671- fn call_with_state ( & mut self , req : Request , state : S ) -> RouteFuture < E > {
671+ fn call_with_state ( self , req : Request , state : S ) -> RouteFuture < E > {
672672 match self {
673- Fallback :: Default ( route) | Fallback :: Service ( route) => route. oneshot_inner ( req) ,
673+ Fallback :: Default ( route) | Fallback :: Service ( route) => route. oneshot_inner_owned ( req) ,
674674 Fallback :: BoxedHandler ( handler) => {
675- let mut route = handler. clone ( ) . into_route ( state) ;
676- route. oneshot_inner ( req)
675+ let route = handler. clone ( ) . into_route ( state) ;
676+ route. oneshot_inner_owned ( req)
677677 }
678678 }
679679 }
Original file line number Diff line number Diff line change @@ -344,5 +344,5 @@ async fn state_isnt_cloned_too_much_with_fallback() {
344344
345345 client. get ( "/does-not-exist" ) . await ;
346346
347- assert_eq ! ( state. count( ) , 4 ) ;
347+ assert_eq ! ( state. count( ) , 3 ) ;
348348}
You can’t perform that action at this time.
0 commit comments