diff --git a/serde_keyvalue/src/key_values.rs b/serde_keyvalue/src/key_values.rs index cd30a5cd53..386ec0aabe 100644 --- a/serde_keyvalue/src/key_values.rs +++ b/serde_keyvalue/src/key_values.rs @@ -1135,13 +1135,13 @@ mod tests { #[test] fn deserialize_bool() { let res = from_key_values::>("m=true").unwrap(); - assert_eq!(res.m, true); + assert!(res.m); let res = from_key_values::>("m=false").unwrap(); - assert_eq!(res.m, false); + assert!(!res.m); let res = from_key_values::>("m").unwrap(); - assert_eq!(res.m, true); + assert!(res.m); let res = from_key_values::>("m=10").unwrap_err(); assert_eq!(