more clippy fixups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2020-10-14 11:33:45 +02:00
parent 39cd81de92
commit 8db1468952
8 changed files with 32 additions and 30 deletions

View File

@ -181,10 +181,8 @@ fn load_fingerprint(prefix: &str, server: &str) -> Option<String> {
for line in raw.split('\n') {
let items: Vec<String> = line.split_whitespace().map(String::from).collect();
if items.len() == 2 {
if &items[0] == server {
return Some(items[1].clone());
}
if items.len() == 2 && &items[0] == server {
return Some(items[1].clone());
}
}