Fix some clippy issues

This commit is contained in:
Tobias Reisinger 2024-04-25 19:47:43 +02:00
parent ab7090f2c5
commit 6f2deb38e1
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
4 changed files with 9 additions and 16 deletions
emgauwa-lib/src

View file

@ -104,14 +104,11 @@ pub fn get_weekday() -> Weekday {
pub fn printable_relay_states(relay_states: &RelayStates) -> String {
let mut relay_debug = String::new();
relay_states.iter().for_each(|state| {
relay_debug.push_str(&format!(
"{}",
match state {
Some(true) => "+",
Some(false) => "-",
None => "?",
}
));
relay_debug.push_str(match state {
Some(true) => "+",
Some(false) => "-",
None => "?",
});
});
relay_debug
}