From 385102a5763f667d53a9d8ed2052ccb8c791bc91 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Mon, 12 Sep 2022 14:36:02 +0200 Subject: Clippy --- src/files.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/files.rs') diff --git a/src/files.rs b/src/files.rs index f232257..616a75d 100644 --- a/src/files.rs +++ b/src/files.rs @@ -52,7 +52,7 @@ pub async fn upload( /// Axum endpoint which shows uploaded file pub async fn show_uploads(Path(id): Path) -> (HeaderMap, Vec) { - let index = id.find(".").map(|i| i).unwrap_or(usize::max_value()); + let index = id.find('.').unwrap_or(usize::max_value()); let mut ext_name = "xxx"; if index != usize::max_value() { -- cgit v1.2.3-71-g8e6c