rust/clippy_utils
bors 2c8e473ffe Auto merge of #9585 - rust-lang:extend-box-default, r=Alexendoo
extend `box-default` lint, add suggestion

This extends the recently added `box-default` lint to also cover `Box::new(vec![])`, `Box::new(String::from(""))` and `Box::new(Vec::from([]))`. Also the lint now suggests a suitable replacement. I did not find a simple way to check whether the type is fully determined by the outside, so I at least checked for some variations to remove the turbofish in those cases.

---

changelog: none
2022-10-07 14:49:54 +00:00
..
src Auto merge of #9585 - rust-lang:extend-box-default, r=Alexendoo 2022-10-07 14:49:54 +00:00
Cargo.toml Bump Clippy version -> 0.1.66 2022-09-28 14:27:50 +02:00