Skip to content

Commit

Permalink
appease lint about rust 2015-era code
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed Aug 12, 2024
1 parent 8d1c7c8 commit 09b1982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/disk_usage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn current_mount() -> Fallible<Filesystem> {
let system = System::new();

let mut found = None;
let mut found_pos = std::usize::MAX;
let mut found_pos = usize::MAX;
for mount in system.mounts()?.into_iter() {
let path = Path::new(&mount.fs_mounted_on);
for (i, ancestor) in current_dir.ancestors().enumerate() {
Expand Down

0 comments on commit 09b1982

Please sign in to comment.