Clippy fixes

This commit is contained in:
Lennard Kittner
2025-11-08 13:19:30 +01:00
parent 2f18725c11
commit fc01eee908
2 changed files with 3 additions and 7 deletions

View File

@@ -226,11 +226,7 @@ impl DeviceState {
self.get_display_data()
.iter()
.filter_map(|(prefix, data, suffix, _)| {
if let Some(data) = data {
Some(format!("{:<padding$} {}{}", prefix, data, suffix))
} else {
None
}
data.as_ref().map(|data| format!("{:<padding$} {}{}", prefix, data, suffix))
})
.collect::<Vec<String>>()
.join("\n")