serde_keyvalue: fix clippy warnings

BUG=None
TEST=cargo build

Change-Id: I83d28839ccfdebcd7a3b2ec3db0b5948fde5813c
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4583702
Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org>
Auto-Submit: Alexandre Courbot <acourbot@chromium.org>
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
This commit is contained in:
Alexandre Courbot 2023-06-02 10:57:08 +09:00 committed by crosvm LUCI
parent 7842698191
commit 82f3e5a4e4

View file

@ -1135,13 +1135,13 @@ mod tests {
#[test]
fn deserialize_bool() {
let res = from_key_values::<SingleStruct<bool>>("m=true").unwrap();
assert_eq!(res.m, true);
assert!(res.m);
let res = from_key_values::<SingleStruct<bool>>("m=false").unwrap();
assert_eq!(res.m, false);
assert!(!res.m);
let res = from_key_values::<SingleStruct<bool>>("m").unwrap();
assert_eq!(res.m, true);
assert!(res.m);
let res = from_key_values::<SingleStruct<bool>>("m=10").unwrap_err();
assert_eq!(