field_reassign_with_default false positive with private fields #6527
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Lint name: field_reassign_with_default
I tried this code:
clippy diagnosed this with:
However,
Parts
has a private_priv
field, so functional record syntax to applyDefault::default()
doesn't work here.Meta
cargo clippy -V
: clippy 0.0.212 (e1884a8e 2020-12-29)rustc -Vv
:rustc 1.49.0 (e1884a8e3 2020-12-29)
binary: rustc
commit-hash: e1884a8e3c3e813aada8254edfa120e85bf5ffca
commit-date: 2020-12-29
host: x86_64-apple-darwin
release: 1.49.0
The text was updated successfully, but these errors were encountered: