Skip to content

Commit 4f194c9

Browse files
committed
Resolve needless_borrow pedantic clippy lint in test
error: the borrowed expression implements the required traits --> tests/test.rs:1931:34 | 1931 | assert!(serde_json::to_value(&map).is_err()); | ^^^^ help: change this to: `map` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow = note: `-D clippy::needless-borrow` implied by `-D clippy::all`
1 parent 993e7a6 commit 4f194c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1928,7 +1928,7 @@ fn test_deny_float_key() {
19281928

19291929
// map with float key
19301930
let map = treemap!(Float => "x");
1931-
assert!(serde_json::to_value(&map).is_err());
1931+
assert!(serde_json::to_value(map).is_err());
19321932
}
19331933

19341934
#[test]

0 commit comments

Comments
 (0)