From 7da8639881e72d7d87a5c56ad162db5cdae87b79 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Sun, 21 Feb 2021 09:42:21 -0800 Subject: [PATCH] Use TO_BE_REMOVED_DIR inplace of static string. --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index c811849..0aa914f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -72,8 +72,9 @@ fn print_dupes(lib: &MovieLibrary) { let root = Path::new(&lib.root); for path in &delete_paths { println!( - r#"mv "{}" /storage/media/to-be-deleted/"#, - root.join(path).to_string_lossy() + r#"mv "{}" {}"#, + root.join(path).to_string_lossy(), + TO_BE_REMOVED_DIR ); } if delete_paths.len() > 0 {