native-windows-gui
native-windows-gui copied to clipboard
Clippy warning: unnecessary_mut_passed
cargo clippy reports this warning for PartialUi derive macro:
warning: the method `build` doesn't need a mutable reference
|
25 | #[derive(Default, NwgPartial)]
| ^^^^^^^^^^
|
= note: `#[warn(clippy::unnecessary_mut_passed)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
= note: this warning originates in the derive macro `NwgPartial` (in Nightly builds, run with -Z macro-backtrace for more info)
Adding #[allow(clippy::unnecessary_mut_passed)] to fn build_partial seems to fix it.
https://docs.rs/native-windows-derive/1.0.4/native_windows_derive/derive.NwgUi.html