From f9d4a78fbb2ab631667f76351bba1a2eb7d5ebff Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Mon, 15 Mar 2021 02:39:18 -0700 Subject: [PATCH] Fix spacing in 'Route::default_rank()'. --- core/lib/src/router/route.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/lib/src/router/route.rs b/core/lib/src/router/route.rs index 6a26f15c..ebcdb9f7 100644 --- a/core/lib/src/router/route.rs +++ b/core/lib/src/router/route.rs @@ -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 } }