From 49e11ce1bae9fbb9128c9144c4e1051daf7a29ed Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 22 Oct 2024 09:56:07 -0700 Subject: [PATCH] Ignore trivially_copy_pass_by_ref pedantic clippy lint in test 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(_: &i32, _: S) -> Result | ^^^^ 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)]` --- test_suite/tests/regression/issue2844.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test_suite/tests/regression/issue2844.rs b/test_suite/tests/regression/issue2844.rs index 492718c8..3ad2012b 100644 --- a/test_suite/tests/regression/issue2844.rs +++ b/test_suite/tests/regression/issue2844.rs @@ -1,3 +1,5 @@ +#![allow(clippy::trivially_copy_pass_by_ref)] + use serde_derive::{Deserialize, Serialize}; macro_rules! declare_in_macro {