Applied clippy rules

This commit is contained in:
2023-04-10 01:29:48 +02:00
parent 7d5ce71e5b
commit 839c0a1c57
17 changed files with 139 additions and 53 deletions

View File

@@ -96,7 +96,7 @@ mod tests {
assert_eq!(payload.commands[0].devices[1].id, "456");
assert_eq!(payload.commands[0].execution.len(), 1);
match payload.commands[0].execution[0] {
CommandType::OnOff{on} => assert_eq!(on, true),
CommandType::OnOff{on} => assert!(on),
_ => panic!("Expected OnOff")
}
},