diff options
author | quentin konieczko <konieczko@gmail.com> | 2023-05-17 15:50:27 +0200 |
---|---|---|
committer | quentin konieczko <konieczko@gmail.com> | 2023-05-17 15:50:27 +0200 |
commit | 9bf9d8c8b3c5d35c63ca9310b8cdb9cf3e46fec7 (patch) | |
tree | 3838dc0aedce6de5a40f1fe06808c6b005659578 /src/event_exec.rs | |
parent | b37fee56b1466780aa9451070e64ebdc9fb1c84d (diff) |
fix comparison between disks couldn't compile on some platform.
Diffstat (limited to 'src/event_exec.rs')
-rw-r--r-- | src/event_exec.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/event_exec.rs b/src/event_exec.rs index 1a2255d..6327263 100644 --- a/src/event_exec.rs +++ b/src/event_exec.rs @@ -30,7 +30,7 @@ use crate::status::Status; use crate::tab::Tab; use crate::utils::{ args_is_empty, disk_used_by_path, filename_from_path, is_sudo_command, open_in_current_neovim, - string_to_path, + opt_mount_point, string_to_path, }; /// Links events from tuikit to custom actions. @@ -828,13 +828,13 @@ impl EventAction { /// it is moved there. /// Else, nothing is done. pub fn trash_move_file(status: &mut Status) -> Result<()> { - let trash_mount_point = disk_used_by_path( + let trash_mount_point = opt_mount_point(disk_used_by_path( status.system_info.disks(), &std::path::PathBuf::from(&status.trash.trash_folder_files), - ); + )); for flagged in status.flagged.content.iter() { - let origin_mount_point = disk_used_by_path(status.disks(), flagged); + let origin_mount_point = opt_mount_point(disk_used_by_path(status.disks(), flagged)); if trash_mount_point != origin_mount_point { continue; } |