needless_pass_by_value on annotation? #1876
Labels
C-bug
Category: Clippy is not doing the correct thing
good-first-issue
These issues are a good way to get started with Clippy
I use Rocket with Rust nightly. Clippy gives me this suggestion (that doesn't compile of course).
warning: this argument is passed by value, but not consumed in the function body
--> src/main.rs:23:1
|
23 | #[get("/")]
| ^^^^^^^^^^^ help: consider taking a reference instead
&#[get("/")]
|
= note: #[warn(needless_pass_by_value)] on by default
= help: for further information visit https://github.com/Manishearth/rust-clippy/wiki#needless_pass_by_value
The text was updated successfully, but these errors were encountered: