Fix spacing in 'Route::default_rank()'.

This commit is contained in:
Sergio Benitez 2021-03-15 02:39:18 -07:00
parent 9c678e606b
commit f9d4a78fbb
1 changed files with 4 additions and 4 deletions

View File

@ -54,11 +54,11 @@ fn default_rank(route: &Route) -> isize {
let wild_query = route.uri.query().map(|_| route.metadata.wild_query);
match (static_path, wild_query) {
(true, Some(false)) => -6, // static path, partly static query
(true, Some(true)) => -5, // static path, fully dynamic query
(true, None) => -4, // static path, no query
(true, Some(true)) => -5, // static path, fully dynamic query
(true, None) => -4, // static path, no query
(false, Some(false)) => -3, // dynamic path, partly static query
(false, Some(true)) => -2, // dynamic path, fully dynamic query
(false, None) => -1, // dynamic path, no query
(false, Some(true)) => -2, // dynamic path, fully dynamic query
(false, None) => -1, // dynamic path, no query
}
}