mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
cargo clippy
This commit is contained in:
@@ -119,7 +119,7 @@ impl SetupActivity {
|
||||
let rsa_key: String = rsa_key.as_str().replace(placeholder.as_str(), "");
|
||||
if rsa_key.is_empty() {
|
||||
// Report error: empty key
|
||||
self.popup = Some(Popup::Alert(Color::Red, format!("SSH Key is empty")));
|
||||
self.popup = Some(Popup::Alert(Color::Red, "SSH Key is empty".to_string()));
|
||||
} else {
|
||||
// Add key
|
||||
if let Err(err) =
|
||||
|
||||
@@ -55,9 +55,9 @@ impl SetupActivity {
|
||||
}
|
||||
}
|
||||
None => {
|
||||
self.popup = Some(Popup::Fatal(format!(
|
||||
"No configuration directory is available on your system"
|
||||
)))
|
||||
self.popup = Some(Popup::Fatal(
|
||||
"No configuration directory is available on your system".to_string(),
|
||||
))
|
||||
}
|
||||
},
|
||||
Err(err) => {
|
||||
|
||||
Reference in New Issue
Block a user