This repository has been archived by the owner on Mar 25, 2024. It is now read-only.
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: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_error.rs:20:23 | 20 | test_error::<i16>(&yaml, expected); | ^^^^^ help: change this to: `yaml` | = 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: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_error.rs:45:21 | 45 | test_error::<A>(&yaml, expected); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_error.rs:66:25 | 66 | test_error::<Basic>(&yaml, expected); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_error.rs:76:26 | 76 | test_error::<String>(&yaml, expected); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_error.rs:91:27 | 91 | test_error::<Wrapper>(&yaml, expected); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_error.rs:103:25 | 103 | test_error::<usize>(&yaml, expected); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_error.rs:118:21 | 118 | test_error::<E>(&yaml, expected); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_error.rs:132:21 | 132 | test_error::<E>(&yaml, expected); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_error.rs:146:21 | 146 | test_error::<E>(&yaml, expected); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_error.rs:156:24 | 156 | test_error::<bool>(&yaml, expected); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_de.rs:50:13 | 50 | test_de(&yaml, &expected); | ^^^^^ help: change this to: `yaml` | = 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: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_error.rs:166:23 | 166 | test_error::<i64>(&yaml, expected); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:48:24 | 48 | test_serde(&thing, &yaml); | ^^^^^ help: change this to: `yaml` | = 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: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_error.rs:176:23 | 176 | test_error::<f64>(&yaml, expected); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:58:24 | 58 | test_serde(&thing, &yaml); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_error.rs:186:22 | 186 | test_error::<()>(&yaml, expected); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:68:24 | 68 | test_serde(&thing, &yaml); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_error.rs:196:32 | 196 | test_error::<(u8, u8, u8)>(&yaml, expected); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:78:24 | 78 | test_serde(&thing, &yaml); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_error.rs:206:28 | 206 | test_error::<(u8, u8)>(&yaml, expected); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:89:28 | 89 | test_serde(&thing, &yaml); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:99:28 | 99 | test_serde(&thing, &yaml); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:110:24 | 110 | test_serde(&thing, &yaml); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:117:24 | 117 | test_serde(&thing, &yaml); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:124:24 | 124 | test_serde(&thing, &yaml); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:131:24 | 131 | test_serde(&thing, &yaml); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:133:43 | 133 | let float: f64 = serde_yaml::from_str(&indoc! {" | ___________________________________________^ 134 | | --- 135 | | .nan 136 | | "}) | |______^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow help: change this to | 133 | let float: f64 = serde_yaml::from_str(" 134 | --- 135 | .nan 136 | ") | error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:150:24 | 150 | test_serde(&thing, &yaml); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:163:24 | 163 | test_serde(&thing, &yaml); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_de.rs:71:13 | 71 | test_de(&yaml, &expected); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:185:24 | 185 | test_serde(&thing, &yaml); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:200:24 | 200 | test_serde(&thing, &yaml); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_de.rs:122:13 | 122 | test_de(&yaml, &expected); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:221:24 | 221 | test_serde(&thing, &yaml); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:233:24 | 233 | test_serde(&thing, &yaml); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:244:24 | 244 | test_serde(&thing, &yaml); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:259:24 | 259 | test_serde(&thing, &yaml); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_de.rs:155:13 | 155 | test_de(&yaml, &expected); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:275:24 | 275 | test_serde(&thing, &yaml); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_de.rs:179:13 | 179 | test_de(&yaml, &expected); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:289:24 | 289 | test_serde(&thing, &yaml); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_de.rs:196:13 | 196 | test_de(&yaml, &expected); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_de.rs:207:59 | 207 | assert_eq!(expected, serde_yaml::from_str::<i128>(&yaml).unwrap()); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_de.rs:217:59 | 217 | assert_eq!(expected, serde_yaml::from_str::<u128>(&yaml).unwrap()); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:306:24 | 306 | test_serde(&thing, &yaml); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_de.rs:237:13 | 237 | test_de(&yaml, &expected); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:327:24 | 327 | test_serde(&thing, &yaml); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_de.rs:265:13 | 265 | test_de(&yaml, &expected); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_de.rs:312:55 | 312 | assert_eq!(expected, serde_yaml::from_str::<Data>(&yaml).unwrap()); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:362:24 | 362 | test_serde(&thing, &yaml); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow error: this expression borrows a reference (`&str`) that is immediately dereferenced by the compiler --> tests/test_serde.rs:392:24 | 392 | test_serde(&thing, &yaml); | ^^^^^ help: change this to: `yaml` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
- Loading branch information