From 938e3e9e2c9864d8a6aacd01ac95ca8768c509d4 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 17 Jul 2024 00:10:11 -0700 Subject: refactor: clippy lints --- src/route.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/route.rs') 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( R: IntoFuture + Send + 'static, ::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); -- cgit v1.2.3