recent cargo clippy has started to flag code generated by the relm-derive macro. I think the error is self-explanatory:
warning: redundant field names in struct initialization
--> src/widgets/wintitlebar.rs:263:20
|
263 | #[name="main_window_stack_switcher"]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `main_window_stack_switcher`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_name
recent
cargo clippy
has started to flag code generated by the relm-derive macro. I think the error is self-explanatory:The lint is https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_name
It's about field puning:
I guess relm-derive could either generate code that clippy likes, or worst-case generate locally for that code an ignore annotation for clippy.