minor programming change
This commit is contained in:
parent
894be7969f
commit
94fbb42829
1 changed files with 1 additions and 1 deletions
|
@ -349,7 +349,7 @@ fn register(path: PathBuf, registry: &mut HashMap<u64, Vec<PathBuf>>, cfg: &Conf
|
||||||
if path.is_file() {
|
if path.is_file() {
|
||||||
let size = metadata.st_size();
|
let size = metadata.st_size();
|
||||||
if size >= cfg.min_size {
|
if size >= cfg.min_size {
|
||||||
registry.entry(size).or_insert(Vec::new()).push(path);
|
registry.entry(size).or_insert_with(|| Vec::new()).push(path);
|
||||||
}
|
}
|
||||||
} else if path.is_dir() {
|
} else if path.is_dir() {
|
||||||
if let Ok(entries) = std::fs::read_dir(path) {
|
if let Ok(entries) = std::fs::read_dir(path) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue