From 4f194c91416e522a0d14fe208ae5e3e6b88090c2 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 24 Oct 2022 21:27:06 -0700 Subject: [PATCH] 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` --- tests/test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.rs b/tests/test.rs index aa5b5caa0..0c0f00e8b 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -1928,7 +1928,7 @@ fn test_deny_float_key() { // map with float key let map = treemap!(Float => "x"); - assert!(serde_json::to_value(&map).is_err()); + assert!(serde_json::to_value(map).is_err()); } #[test]