From fb0b8644dc0532f3d77968bf44c2ba55fb792c26 Mon Sep 17 00:00:00 2001 From: qkzk Date: Sat, 23 Sep 2023 14:52:38 +0200 Subject: simplify confirmation string --- src/mode.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mode.rs') 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(), } } } -- cgit v1.2.3