summaryrefslogtreecommitdiffstats
path: root/src/files.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/files.rs')
-rw-r--r--src/files.rs2
1 files changed, 1 insertions, 1 deletions
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<String>) -> (HeaderMap, Vec<u8>) {
- 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() {