cargo clippy

This commit is contained in:
ChristianVisintin
2020-12-26 09:40:24 +01:00
parent c9a4706c24
commit f6d1f24b60
2 changed files with 4 additions and 4 deletions

View File

@@ -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) =

View File

@@ -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) => {