From cfb8fb425cba14d957cef4a4f3ccf90ee05e5f5d Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Thu, 23 Feb 2023 15:14:06 -0500 Subject: [PATCH] [O] Fix indent --- backend/src/main.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/backend/src/main.rs b/backend/src/main.rs index 55f2493..b0176d4 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -84,12 +84,13 @@ impl MyApp { .filter_map(|x| { let m = x.metadata().ok()?; Some(ReturnPath { - name: x.file_name().to_str()?.to_string(), - file_type: x.path().file_type().to_string(), - mtime: m.mtime() * 1000, - size: m.len(), - mime: if x.path().is_file() { self.generator.get_mime(&x.path()).ok() } else { None } - })}).collect(); + name: x.file_name().to_str()?.to_string(), + file_type: x.path().file_type().to_string(), + mtime: m.mtime() * 1000, + size: m.len(), + mime: if x.path().is_file() { self.generator.get_mime(&x.path()).ok() } else { None } + }) + }).collect(); match serde_json::to_string(&paths) { Ok(json) => { json.resp(200) }