diff options
Diffstat (limited to 'src/io/io_observer.rs')
-rw-r--r-- | src/io/io_observer.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/io/io_observer.rs b/src/io/io_observer.rs index 44d4248..93a1b15 100644 --- a/src/io/io_observer.rs +++ b/src/io/io_observer.rs @@ -1,7 +1,7 @@ use std::path; use std::thread; -use crate::io::{FileOperation, FileOperationProgress}; +use crate::io::FileOperationProgress; use crate::util::format; #[derive(Debug)] @@ -34,12 +34,7 @@ impl IoWorkerObserver { match self.progress.as_ref() { None => {} Some(progress) => { - let op_str = match progress.kind() { - FileOperation::Cut => "Moving", - FileOperation::Copy => "Copying", - FileOperation::Symlink => "Symlinking", - FileOperation::Delete => "Deleting", - }; + let op_str = progress.kind().actioning_str(); let processed_size = format::file_size_to_string(progress.bytes_processed()); let total_size = format::file_size_to_string(progress.total_bytes()); |