lloydmeta / frunk

Funktional generic type-level programming in Rust: HList, Coproduct, Generic, LabelledGeneric, Validated, Monoid and friends.
https://beachape.com/frunk/
MIT License
1.29k stars 58 forks source link

Cl failures from clippy #184

Closed ExpHP closed 3 years ago

ExpHP commented 3 years ago

https://github.com/lloydmeta/frunk/runs/2853440952

Clippy is mad because HNil implements Copy, so an inherent method HNil::to_ref(&self) -> Self implies a costlier operation than it actually is. What it doesn't understand is that this method is being generated by a macro, and needs to match similar methods on other types.

Probably just want to ignore this.