TryInto cover

This commit is contained in:
houseme
2025-03-31 18:32:22 +08:00
parent 96cc708b5b
commit f2692b78dd
3 changed files with 11 additions and 17 deletions
+1 -1
View File
@@ -588,7 +588,7 @@ impl DataUsageCache {
Some(e) => e,
None => return,
};
if top_e.children.len() > DATA_SCANNER_FORCE_COMPACT_AT_FOLDERS.try_into().unwrap() {
if top_e.children.len() > <u64 as TryInto<usize>>::try_into(DATA_SCANNER_FORCE_COMPACT_AT_FOLDERS).unwrap() {
self.reduce_children_of(&hash_path(&self.info.name), limit, true);
}
if self.cache.len() <= limit {