aboutsummaryrefslogtreecommitdiff
path: root/src/route.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-07-17 00:10:11 -0700
committerFuwn <[email protected]>2024-07-17 00:10:11 -0700
commit938e3e9e2c9864d8a6aacd01ac95ca8768c509d4 (patch)
treeb2a9bace127118a7c2d018920fe0fd90c51f3e5c /src/route.rs
parentdeps(windmark): bump (diff)
downloadlocus-938e3e9e2c9864d8a6aacd01ac95ca8768c509d4.tar.xz
locus-938e3e9e2c9864d8a6aacd01ac95ca8768c509d4.zip
refactor: clippy lints
Diffstat (limited to 'src/route.rs')
-rw-r--r--src/route.rs4
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);