diff options
| author | Fuwn <[email protected]> | 2024-07-17 00:10:11 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-07-17 00:10:11 -0700 |
| commit | 938e3e9e2c9864d8a6aacd01ac95ca8768c509d4 (patch) | |
| tree | b2a9bace127118a7c2d018920fe0fd90c51f3e5c /src/route.rs | |
| parent | deps(windmark): bump (diff) | |
| download | locus-938e3e9e2c9864d8a6aacd01ac95ca8768c509d4.tar.xz locus-938e3e9e2c9864d8a6aacd01ac95ca8768c509d4.zip | |
refactor: clippy lints
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); |