Slightly cleaner
This commit is contained in:
parent
953d18e634
commit
3df1c4e52b
1 changed files with 2 additions and 2 deletions
|
@ -168,8 +168,8 @@ impl State {
|
|||
}
|
||||
|
||||
fn process_result(&mut self, res: Listing) {
|
||||
let filename = clean(&self.cur_path.join(res.path()).to_string_lossy());
|
||||
if let Listing::File(_, size) = res {
|
||||
if let Listing::File(path, size) = res {
|
||||
let filename = clean(&self.cur_path.join(path).to_string_lossy());
|
||||
self.filesystem.insert(filename, size);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue