Skip to content

Commit

Permalink
Style corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
jespersm committed Sep 5, 2024
1 parent 96f2727 commit 3b43a03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/lib/src/router/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl Router<Finalized> {
self.route_map.get(&req.method())
.into_iter()
.flatten()
.any(|&route|
.any(|&route|
paths_match(&self.routes[route], req)
&&
queries_match(&self.routes[route], req)
Expand Down Expand Up @@ -430,7 +430,10 @@ mod test {
assert!(route(&router, Get, "/prefi/").is_none());
}

fn has_mismatched_method<'a>(router: &'a Router<Finalized>, method: Method, uri: &'a str) -> bool {
fn has_mismatched_method<'a>(
router: &'a Router<Finalized>,
method: Method, uri: &'a str
) -> bool {
let client = Client::debug_with(vec![]).expect("client");
let request = client.req(method, Origin::parse(uri).unwrap());
router.matches_except_method(&request)
Expand Down
2 changes: 2 additions & 0 deletions core/lib/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,11 @@ impl Rocket<Orbit> {
}
});
}

Ok(())
});
}

Ok(())
}
}

0 comments on commit 3b43a03

Please sign in to comment.