1
0
Fork 0

Slightly cleaner

This commit is contained in:
Vivianne 2022-12-10 11:58:42 -08:00
parent 953d18e634
commit 3df1c4e52b

View file

@ -168,8 +168,8 @@ impl State {
} }
fn process_result(&mut self, res: Listing) { fn process_result(&mut self, res: Listing) {
let filename = clean(&self.cur_path.join(res.path()).to_string_lossy()); if let Listing::File(path, size) = res {
if let Listing::File(_, size) = res { let filename = clean(&self.cur_path.join(path).to_string_lossy());
self.filesystem.insert(filename, size); self.filesystem.insert(filename, size);
} }
} }