Clippy throws needless_lifetimes
on components with lifetime parameter
#1825
Labels
bug
Something isn't working
Describe the bug
In leptos 0.4, I write a component taking a reference like this:
The same is true for leptos 0.5 ― without explicit
'a
, the compiler will complainerror[E0106]: missing lifetime specifier
.However in 0.5 (but not in 0.4) clippy started complaining about this lifetime parameter being "needless" when it is in fact needed.
Did something change in the component macro?
Leptos Dependencies
To Reproduce
Run
nix develop -c cargo clippy
in juspay/omnix#78 (commit bf90433)Expected behavior
cargo clippy
should succeed without warnings.Screenshots
The text was updated successfully, but these errors were encountered: