mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 13:23:08 +00:00
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:
parent
7842698191
commit
82f3e5a4e4
1 changed files with 3 additions and 3 deletions
|
@ -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!(
|
||||
|
|
Loading…
Reference in a new issue