From c9e6ffd33cec460795f8fef27e00a92b25794429 Mon Sep 17 00:00:00 2001 From: Matthew Esposito Date: Fri, 7 Mar 2025 17:08:58 -0500 Subject: [PATCH] clippy fix --- src/search.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.rs b/src/search.rs index 1b5d1a9..88dcfdd 100644 --- a/src/search.rs +++ b/src/search.rs @@ -74,7 +74,7 @@ pub async fn find(req: Request) -> Result, String> { if query.starts_with("r/") || query.starts_with("user/") { return Ok(redirect(&format!("/{query}"))); } - + if query.starts_with("R/") { return Ok(redirect(&format!("/r{}", &query[1..]))); }