fast-nail-55400
12/14/2020, 9:17 PMclippy::default_trait_access
which flags code that uses Default::default()
? I am using Default::default
via the ..Default::default()
syntax to fill in default values in some Prost-generated protobuf structs. I could repeat the struct name itself to comply with the lint but the ..Default::default()
syntax seems fine to me.average-vr-56795
12/14/2020, 9:25 PMDefault::default()
seems fairly unambiguous in that instance… Can you file a bug against https://github.com/rust-lang/rust-clippy for it?fast-nail-55400
12/14/2020, 9:28 PM#![allow(clippy::default_trait_access)]
at the top of every file.average-vr-56795
12/14/2020, 9:29 PMfast-nail-55400
12/14/2020, 9:29 PMaverage-vr-56795
12/14/2020, 9:30 PMfast-nail-55400
12/14/2020, 9:30 PMaverage-vr-56795
12/14/2020, 9:31 PMfast-nail-55400
12/14/2020, 9:32 PMaverage-vr-56795
12/14/2020, 9:32 PMwitty-crayon-22786
12/14/2020, 10:02 PMDefault::default
, : that’s as opposed to ActualStruct::default
, i think… right?fast-nail-55400
12/14/2020, 11:05 PM