Skip to content

Commit

Permalink
Clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Bartlett authored and Licenser committed Oct 28, 2024
1 parent 64ab3b9 commit 07eb6d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1127,11 +1127,11 @@ mod tests {
let v = d.as_value();

assert!(v.contains_key("payload"), "Failed to find payload key");
let v = v.get("payload").unwrap();
assert!(v.is_object(), "payload not recognized as object: {:?}", v);
let v = v.get("payload").expect("Can't get payload");
assert!(v.is_object(), "payload not recognized as object: {v:?}");
assert!(v.contains_key("features"), "Failed to find features key");
let v = v.get("features").unwrap();
assert!(v.is_array(), "features not recognized as array: {:?}", v);
let v = v.get("features").expect("can't get features");
assert!(v.is_array(), "features not recognized as array: {v:?}");

// proving that value peeking doesn't affect the deserializer

Expand Down

0 comments on commit 07eb6d4

Please sign in to comment.