Skip to content

Commit

Permalink
Fix clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkKronicle committed Jan 14, 2024
1 parent 1e9df03 commit 8f74b17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/freedesktop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ fn get_topdir_for_path<'a>(path: &Path, mnt_points: &'a [MountPoint]) -> &'a Pat
// If there is a /run mount and a /run/media/user mount, we want to prioritize the
// longest
let mount_length = &mount_point.mnt_dir.to_str().unwrap().len();
if topdir == None || mount_length > &path_length {
if topdir.is_none() || mount_length > &path_length {
path_length = *mount_length;
topdir = Some(&mount_point.mnt_dir);
}
Expand Down

0 comments on commit 8f74b17

Please sign in to comment.