Swoorup / wgsl-bindgen

Generate typesafe Rust bindings for wgsl shaders in wgpu
https://crates.io/crates/wgsl_bindgen
MIT License
34 stars 7 forks source link

Potentially addressible clippy warnings #19

Open 9SMTM6 opened 4 months ago

9SMTM6 commented 4 months ago

Hey, nice work with this package!

If I use the generated code with my project I have to disable a bunch of warnings, since I set these on my crate : #![warn(clippy::all, rust_2018_idioms, rust_2024_compatibility)]. The warnings I have to disable were: #[allow(elided_lifetimes_in_paths, clippy::redundant_static_lifetimes, clippy::approx_constant, clippy::needless_borrow)].

I think every of these warnings is actually addressable, but the clippy::approx_constant. Its not a huge pain, I just though I'd let you know.