chore: enable safe clippy pedantic lints

This commit is contained in:
Christian Visintin
2026-04-19 01:54:46 +05:30
parent f044e6ace2
commit e11af03fdd
17 changed files with 50 additions and 36 deletions
@@ -29,9 +29,9 @@ impl FromStr for Command {
Err("cd command requires a path".to_string())
}
}
Some("exit") | Some("logout") => Ok(Command::Exit),
Some("exit" | "logout") => Ok(Command::Exit),
Some(_) => Ok(Command::Exec(s.to_string())),
None => Err("".to_string()),
None => Err(String::new()),
}
}
}
@@ -43,7 +43,7 @@ impl FileTransferActivity {
fn action_exec(&mut self, cmd: String) {
if cmd.is_empty() {
self.print_terminal("".to_string());
self.print_terminal(String::new());
return;
}