Add `needless_late_init` lint by Alexendoo · Pull Request #7995 · rust-lang/rust...
source link: https://github.com/rust-lang/rust-clippy/pull/7995
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
|
LL | };
| +
This overlaps a little with useless_let_if_seq
, needless_late_init
doesn't do as many clever transformations as useless_let_if_seq
however, hopefully meaning it has less false positives
I wasn't sure what to choose here, I could remove the matching of ifs from needless_late_init
This overlaps a little with
useless_let_if_seq
, needless_late_init doesn't do as many clever transformations asuseless_let_if_seq
however, hopefully meaning it has less false positives
Yes, it looks good.
I wasn't sure what to choose here, I could remove the matching of ifs from
needless_late_init
IMO it looks good as it is.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK