A treemap for finding and removing what fills your disk, for Omarchy. Rust + GPUI.
Rust
windows: as_chunks instead of chunks_exact(2), which clippy 1.98 wants
Abdulwahb Isam316b91ff7eb8
diff --git a/crates/disktree-core/src/windows.rs b/crates/disktree-core/src/windows.rsindex 9e9468d..14ba81d 100644--- a/crates/disktree-core/src/windows.rs+++ b/crates/disktree-core/src/windows.rs@@ -334,8 +334,10 @@ impl Records {};let name: Vec<u16> = name_bytes- .chunks_exact(2)- .map(|pair| u16::from_ne_bytes([pair[0], pair[1]]))+ .as_chunks::<2>()+ .0+ .iter()+ .map(|pair| u16::from_ne_bytes(*pair)).collect();if name == [u16::from(b'.')] || name == [u16::from(b'.'); 2] {return Ok((None, next));