File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ impl Router<Finalized> {
113
113
self . route_map . get ( & req. method ( ) )
114
114
. into_iter ( )
115
115
. flatten ( )
116
- . any ( |& route|
116
+ . any ( |& route|
117
117
paths_match ( & self . routes [ route] , req)
118
118
&&
119
119
queries_match ( & self . routes [ route] , req)
@@ -430,7 +430,10 @@ mod test {
430
430
assert ! ( route( & router, Get , "/prefi/" ) . is_none( ) ) ;
431
431
}
432
432
433
- fn has_mismatched_method < ' a > ( router : & ' a Router < Finalized > , method : Method , uri : & ' a str ) -> bool {
433
+ fn has_mismatched_method < ' a > (
434
+ router : & ' a Router < Finalized > ,
435
+ method : Method , uri : & ' a str
436
+ ) -> bool {
434
437
let client = Client :: debug_with ( vec ! [ ] ) . expect ( "client" ) ;
435
438
let request = client. req ( method, Origin :: parse ( uri) . unwrap ( ) ) ;
436
439
router. matches_except_method ( & request)
Original file line number Diff line number Diff line change @@ -220,9 +220,11 @@ impl Rocket<Orbit> {
220
220
}
221
221
} ) ;
222
222
}
223
+
223
224
Ok ( ( ) )
224
225
} ) ;
225
226
}
227
+
226
228
Ok ( ( ) )
227
229
}
228
230
}
You can’t perform that action at this time.
0 commit comments