[O] Fix indent
This commit is contained in:
+7
-6
@@ -84,12 +84,13 @@ impl MyApp {
|
|||||||
.filter_map(|x| {
|
.filter_map(|x| {
|
||||||
let m = x.metadata().ok()?;
|
let m = x.metadata().ok()?;
|
||||||
Some(ReturnPath {
|
Some(ReturnPath {
|
||||||
name: x.file_name().to_str()?.to_string(),
|
name: x.file_name().to_str()?.to_string(),
|
||||||
file_type: x.path().file_type().to_string(),
|
file_type: x.path().file_type().to_string(),
|
||||||
mtime: m.mtime() * 1000,
|
mtime: m.mtime() * 1000,
|
||||||
size: m.len(),
|
size: m.len(),
|
||||||
mime: if x.path().is_file() { self.generator.get_mime(&x.path()).ok() } else { None }
|
mime: if x.path().is_file() { self.generator.get_mime(&x.path()).ok() } else { None }
|
||||||
})}).collect();
|
})
|
||||||
|
}).collect();
|
||||||
|
|
||||||
match serde_json::to_string(&paths) {
|
match serde_json::to_string(&paths) {
|
||||||
Ok(json) => { json.resp(200) }
|
Ok(json) => { json.resp(200) }
|
||||||
|
|||||||
Reference in New Issue
Block a user