From 28bdcb41aafc9c5497eb67027419c64f212f50f0 Mon Sep 17 00:00:00 2001 From: Steppy Date: Fri, 13 Dec 2024 00:51:36 +0100 Subject: [PATCH] Minor reformatting --- src/main.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index bd74cf0..d408c2c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -210,7 +210,11 @@ fn main() -> Result<(), String> { let mut destination = OsString::from(&server.ssh_name); destination.push(":"); destination.push(&server.server_directory_path); - if !server.server_directory_path.to_string_lossy().ends_with("/") { + if !server + .server_directory_path + .to_string_lossy() + .ends_with("/") + { destination.push("/"); } destination.push(&upload_directory); @@ -252,7 +256,7 @@ fn main() -> Result<(), String> { } } - println!("Done!") + println!("Done!"); } Command::Command { command } => { start_ssh_agent()?; @@ -267,7 +271,7 @@ fn main() -> Result<(), String> { .wait() .map_err(|e| format!("failed to wait for ssh command completion: {e}"))?; } - println!("Done!") + println!("Done!"); } }