Skip to content

Commit

Permalink
Ignore needless_pass_by_value pedantic clippy lint in test
Browse files Browse the repository at this point in the history
    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
  • Loading branch information
dtolnay committed Apr 14, 2024
1 parent 1ff5c1f commit 392fa6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test.rs
@@ -1,6 +1,7 @@
#![allow(
clippy::assertions_on_result_states,
clippy::items_after_statements,
clippy::needless_pass_by_value,
clippy::needless_raw_string_hashes,
clippy::non_ascii_literal,
clippy::octal_escapes
Expand Down

0 comments on commit 392fa6c

Please sign in to comment.