Skip to content

Commit 3b43a03

Browse files
committed
Style corrections
1 parent 96f2727 commit 3b43a03

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

core/lib/src/router/router.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ impl Router<Finalized> {
113113
self.route_map.get(&req.method())
114114
.into_iter()
115115
.flatten()
116-
.any(|&route|
116+
.any(|&route|
117117
paths_match(&self.routes[route], req)
118118
&&
119119
queries_match(&self.routes[route], req)
@@ -430,7 +430,10 @@ mod test {
430430
assert!(route(&router, Get, "/prefi/").is_none());
431431
}
432432

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 {
434437
let client = Client::debug_with(vec![]).expect("client");
435438
let request = client.req(method, Origin::parse(uri).unwrap());
436439
router.matches_except_method(&request)

core/lib/src/server.rs

+2
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,11 @@ impl Rocket<Orbit> {
220220
}
221221
});
222222
}
223+
223224
Ok(())
224225
});
225226
}
227+
226228
Ok(())
227229
}
228230
}

0 commit comments

Comments
 (0)