Rustc and clippy warnings generated by derive(FromRef) #1674
Labels
A-axum-macros
C-enhancement
Category: A PR with an enhancement
E-easy
Call for participation: Experience needed to fix: Easy / not much
E-help-wanted
Call for participation: Help is requested to fix this issue.
Bug Report
Version
Platform
Linux alpha 6.1.1 #1-NixOS SMP PREEMPT_DYNAMIC Wed Dec 21 16:48:12 UTC 2022 x86_64 GNU/Linux
Crates
axum-macros
Description
When deriving
FromRef
for&'static Something
, the following lints are triggered by the generated code:clippy::clone_double_ref
(deny by default)noop_method_call
(allow by default)I expect the generated code to cause no errors, possibly by suppressing the ones mentioned above.
Minimal example:
The text was updated successfully, but these errors were encountered: