From 7253c8c615760aca709e2f537fc07bfdbc7a99fd Mon Sep 17 00:00:00 2001 From: ascendforever Date: Wed, 25 Oct 2023 13:19:16 -0400 Subject: [PATCH] extra newline in error message removed --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 0bf26f5..3c0a423 100644 --- a/src/main.rs +++ b/src/main.rs @@ -199,6 +199,7 @@ fn assert_all_same_device(paths: &[PathBuf]) -> Result<(), String> { s.push_str(&shlex::quote(&path.to_string_lossy())); s.push_str("\n"); } + s.pop(); // remove last newline Err(s) } }