Skip to content

Conversation

kud1ing
Copy link

@kud1ing kud1ing commented Sep 26, 2013

No description provided.

@huonw
Copy link
Contributor

huonw commented Sep 26, 2013

Landing in #9523.

@huonw huonw closed this Sep 26, 2013
bors added a commit that referenced this pull request Sep 27, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Oct 6, 2022
add `box-default` lint

This adds a `box-default` lint to suggest using `Box::default()` instead of `Box::new(Default::default())`, which offers less moving parts and potentially better performance according to [the perf book](https://nnethercote.github.io/perf-book/standard-library-types.html#box).

---

changelog: add [`box_default`] lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants