Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve needless_borrow clippy lints
error: the borrowed expression implements the required traits --> src/value/ser.rs:198:60 | 198 | values.insert(String::from(variant), tri!(to_value(&value))); | ^^^^^^ help: change this to: `value` | = note: `-D clippy::needless-borrow` implied by `-D clippy::all` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: the borrowed expression implements the required traits --> src/value/ser.rs:317:37 | 317 | self.vec.push(tri!(to_value(&value))); | ^^^^^^ help: change this to: `value` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: the borrowed expression implements the required traits --> src/value/ser.rs:366:37 | 366 | self.vec.push(tri!(to_value(&value))); | ^^^^^^ help: change this to: `value` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: the borrowed expression implements the required traits --> src/value/ser.rs:409:47 | 409 | map.insert(key, tri!(to_value(&value))); | ^^^^^^ help: change this to: `value` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: the borrowed expression implements the required traits --> src/value/ser.rs:666:58 | 666 | self.map.insert(String::from(key), tri!(to_value(&value))); | ^^^^^^ help: change this to: `value` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: the borrowed expression implements the required traits --> tests/test.rs:98:26 | 98 | let v = to_value(&value).unwrap(); | ^^^^^^ help: change this to: `value` | = note: `-D clippy::needless-borrow` implied by `-D clippy::all` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: the borrowed expression implements the required traits --> tests/test.rs:114:26 | 114 | let v = to_value(&value).unwrap(); | ^^^^^^ help: change this to: `value` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
- Loading branch information