Skip to content

Commit

Permalink
Ignore trivially_copy_pass_by_ref pedantic clippy lint in test
Browse files Browse the repository at this point in the history
    warning: this argument (4 byte) is passed by reference, but would be more efficient if passed by value (limit: 8 byte)
      --> test_suite/tests/regression/issue2844.rs:18:28
       |
    18 |     pub fn serialize<S>(_: &i32, _: S) -> Result<S::Ok, S::Error>
       |                            ^^^^ help: consider passing by value instead: `i32`
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref
       = note: `-W clippy::trivially-copy-pass-by-ref` implied by `-W clippy::pedantic`
       = help: to override `-W clippy::pedantic` add `#[allow(clippy::trivially_copy_pass_by_ref)]`
  • Loading branch information
dtolnay committed Oct 22, 2024
1 parent 7ae1b5f commit 49e11ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test_suite/tests/regression/issue2844.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::trivially_copy_pass_by_ref)]

use serde_derive::{Deserialize, Serialize};

macro_rules! declare_in_macro {
Expand Down

0 comments on commit 49e11ce

Please sign in to comment.