modular-bitfield
modular-bitfield copied to clipboard
`with_*` methods should have `#[must_use]` annotation
I started getting a new Clippy lint, return_self_not_must_use
, when I updated my nightly compiler. This appears to be a simple fix of adding #[must_use]
to the with_*
methods created by this macro.
This appears to have hit beta now as well. This should be dealt with before the next stable release, when this clippy lint will be stabilized.
As a workaround (?) you can annotate the struct itself with #[must_use]
.