Skip to content

Commit 392fa6c

Browse files
committed
Ignore needless_pass_by_value pedantic clippy lint in test
warning: this argument is passed by value, but not consumed in the function body --> tests/test.rs:101:24 | 101 | fn assert(literal: Literal, expected: &str) { | ^^^^^^^ help: consider taking a reference instead: `&Literal` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value = note: `-W clippy::needless-pass-by-value` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::needless_pass_by_value)]` warning: this argument is passed by value, but not consumed in the function body --> tests/test.rs:149:24 | 149 | fn assert(literal: Literal, expected: &str) { | ^^^^^^^ help: consider taking a reference instead: `&Literal` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value warning: this argument is passed by value, but not consumed in the function body --> tests/test.rs:167:24 | 167 | fn assert(literal: Literal, expected: &str) { | ^^^^^^^ help: consider taking a reference instead: `&Literal` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value warning: this argument is passed by value, but not consumed in the function body --> tests/test.rs:194:24 | 194 | fn assert(literal: Literal, expected: &str) { | ^^^^^^^ help: consider taking a reference instead: `&Literal` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value warning: this argument is passed by value, but not consumed in the function body --> tests/test.rs:265:24 | 265 | fn assert(literal: Literal, expected: &str) { | ^^^^^^^ help: consider taking a reference instead: `&Literal` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value warning: this argument is passed by value, but not consumed in the function body --> tests/test.rs:281:24 | 281 | fn assert(literal: Literal, expected: &str) { | ^^^^^^^ help: consider taking a reference instead: `&Literal` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value warning: this argument is passed by value, but not consumed in the function body --> tests/test.rs:320:24 | 320 | fn assert(literal: Literal, expected: &str) { | ^^^^^^^ help: consider taking a reference instead: `&Literal` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
1 parent 1ff5c1f commit 392fa6c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![allow(
22
clippy::assertions_on_result_states,
33
clippy::items_after_statements,
4+
clippy::needless_pass_by_value,
45
clippy::needless_raw_string_hashes,
56
clippy::non_ascii_literal,
67
clippy::octal_escapes

0 commit comments

Comments
 (0)