Skip to content

Commit 346189a

Browse files
committed
Fix needless_borrow clippy lint in new control character test
warning: this expression creates a reference which is immediately dereferenced by the compiler --> tests/test.rs:2515:9 | 2515 | &"\"\t\n\r\"", | ^^^^^^^^^^^^^ help: change this to: `"\"\t\n\r\""` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow = note: `-W clippy::needless-borrow` implied by `-W clippy::all` = help: to override `-W clippy::all` add `#[allow(clippy::needless_borrow)]`
1 parent 859ead8 commit 346189a

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
@@ -2512,7 +2512,7 @@ fn test_control_character_search() {
25122512

25132513
// Multiple occurrences
25142514
test_parse_err::<String>(&[(
2515-
&"\"\t\n\r\"",
2515+
"\"\t\n\r\"",
25162516
"control character (\\u0000-\\u001F) found while parsing a string at line 1 column 2",
25172517
)]);
25182518
}

0 commit comments

Comments
 (0)