summaryrefslogtreecommitdiffstats
path: root/src/mode.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-09-23 14:52:38 +0200
committerqkzk <qu3nt1n@gmail.com>2023-09-23 14:52:38 +0200
commitfb0b8644dc0532f3d77968bf44c2ba55fb792c26 (patch)
tree7dd9d7b97b54b926d92a6f32a1993072ba715fb4 /src/mode.rs
parente6fca3d40c231861d3cd48df52f32f686c77acb7 (diff)
simplify confirmation string
Diffstat (limited to 'src/mode.rs')
-rw-r--r--src/mode.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mode.rs b/src/mode.rs
index 586fd7d..603dbdf 100644
--- a/src/mode.rs
+++ b/src/mode.rs
@@ -44,11 +44,12 @@ impl NeedConfirmation {
NeedConfirmation::Copy => {
format!("Files will be copied to {}", destination)
}
- NeedConfirmation::Delete => "Files will deleted permanently".to_owned(),
+ NeedConfirmation::Delete | NeedConfirmation::EmptyTrash => {
+ "Files will be deleted permanently".to_owned()
+ }
NeedConfirmation::Move => {
format!("Files will be moved to {}", destination)
}
- NeedConfirmation::EmptyTrash => "Trash will be emptied".to_owned(),
}
}
}