chore: please clippy
ci/woodpecker/push/build unknown status Details
ci/woodpecker/push/clippy unknown status Details
ci/woodpecker/push/lint unknown status Details
ci/woodpecker/push/release Pipeline was successful Details

incremental-backups
Jef Roosens 2023-06-13 13:01:47 +02:00
parent 5ae23c931a
commit ce3dcdd4b1
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 6 additions and 6 deletions

View File

@ -199,22 +199,22 @@ impl fmt::Display for ServerCommand {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let cmd = self.create_cmd();
write!(f, "Command: {}\n", self.java)?;
write!(f, "Working dir: {}\n", self.config_dir.as_path().display())?;
writeln!(f, "Command: {}", self.java)?;
writeln!(f, "Working dir: {}", self.config_dir.as_path().display())?;
// Print command env vars
write!(f, "Environment:\n")?;
writeln!(f, "Environment:")?;
for (key, val) in cmd.get_envs().filter(|(_, v)| v.is_some()) {
let val = val.unwrap();
write!(f, " {}={}\n", key.to_string_lossy(), val.to_string_lossy())?;
writeln!(f, " {}={}", key.to_string_lossy(), val.to_string_lossy())?;
}
// Print command arguments
write!(f, "Arguments:\n")?;
writeln!(f, "Arguments:")?;
for arg in cmd.get_args() {
write!(f, " {}\n", arg.to_string_lossy())?;
writeln!(f, " {}", arg.to_string_lossy())?;
}
Ok(())