Skip to content
Myr

Ignore trivially_copy_pass_by_ref pedantic clippy lint in test

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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)]`

authored by David Tolnay · committed by David Tolnay · parent 7ae1b5f · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • tests:+2 added−0 removed

1 file+2 added−0 removed

modified:test_suite/tests/regression/issue2844.rs+2 added
1#![allow(clippy::trivially_copy_pass_by_ref)]23use serde_derive::{Deserialize, Serialize};45macro_rules! declare_in_macro {6 ($with:literal) => {
27 unmodified lines