diff options
Diffstat (limited to 'src/route.rs')
| -rw-r--r-- | src/route.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/route.rs b/src/route.rs index f484a56..12cc8f1 100644 --- a/src/route.rs +++ b/src/route.rs @@ -39,9 +39,9 @@ pub fn track_mount<F, R>( R: IntoFuture<Output = windmark::response::Response> + Send + 'static, <R as IntoFuture>::IntoFuture: Send, { - if !description.starts_with("-") { + if !description.starts_with('-') { (*ROUTES.lock().unwrap()) - .insert(route.to_string(), Route::new(&description.replacen("-", "", 1))); + .insert(route.to_string(), Route::new(&description.replacen('-', "", 1))); } router.mount(route, handler); |