chore: Rust 1.66 linting

This commit is contained in:
Jack Wills
2022-12-15 16:34:24 +00:00
parent 7899b77356
commit bf9dcac704
7 changed files with 31 additions and 31 deletions
+3 -3
View File
@@ -51,7 +51,7 @@ impl fmt::Display for Header {
Self::Rx => "↓ rx",
Self::Tx => "↑ tx",
};
write!(f, "{:>x$}", disp, x = f.width().unwrap_or(1))
write!(f, "{disp:>x$}", x = f.width().unwrap_or(1))
}
}
@@ -280,9 +280,9 @@ impl AppData {
let mut name = self.containers.items[index].name.clone();
name.truncate(32);
if logs_len.is_empty() {
format!("- {} ", name)
format!("- {name} ")
} else {
format!("{} - {}", logs_len, name)
format!("{logs_len} - {name}")
}
})
}