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(), "");
|
let rsa_key: String = rsa_key.as_str().replace(placeholder.as_str(), "");
|
||||||
if rsa_key.is_empty() {
|
if rsa_key.is_empty() {
|
||||||
// Report error: empty key
|
// 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 {
|
} else {
|
||||||
// Add key
|
// Add key
|
||||||
if let Err(err) =
|
if let Err(err) =
|
||||||
|
|||||||
@@ -55,9 +55,9 @@ impl SetupActivity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
None => {
|
None => {
|
||||||
self.popup = Some(Popup::Fatal(format!(
|
self.popup = Some(Popup::Fatal(
|
||||||
"No configuration directory is available on your system"
|
"No configuration directory is available on your system".to_string(),
|
||||||
)))
|
))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user