Skip to content

Commit

Permalink
fix: clippy in hex
Browse files Browse the repository at this point in the history
  • Loading branch information
therustmonk committed Jul 19, 2022
1 parent 731bfcd commit 923d80e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/serde/hex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ mod tests {
let hex_or_bytes = HexOrBytes([1, 2, 3, 255]);
let expected = "\"010203ff\"";
assert_eq!(serde_json::to_string(&hex_or_bytes).unwrap(), expected);
let restored: HexOrBytes = serde_json::from_str(&expected).unwrap();
let restored: HexOrBytes = serde_json::from_str(expected).unwrap();
assert_eq!(hex_or_bytes, restored);
}

Expand Down

0 comments on commit 923d80e

Please sign in to comment.