Skip to content
Myr

Ignore needless_pass_by_value Clippy pedantic lint in test suite

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

error: this argument is passed by value, but not consumed in the function body --> tests/test_macros.rs:65:22 | 65 | fn message(cell: Cell<&str>) -> &str { | ^^^^^^^^^^ help: consider taking a reference instead: `&Cell<&str>` | = note: `-D clippy::needless-pass-by-value` implied by `-D clippy::pedantic` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value

authored by David Tolnay · committed by David Tolnay · parent 636bed6 · Browse files · 1 file+1 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+1 added−0 removed

  • tests:+1 added−0 removed

1 file+1 added−0 removed

modified:tests/test_macros.rs+1 added
1#![allow(2 clippy::eq_op,3 clippy::items_after_statements,4 clippy::needless_pass_by_value,5 clippy::shadow_unrelated,6 clippy::wildcard_imports7)]8
62 unmodified lines