mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
0c44586ff7
Add size-parameter to unecessary_box_returns Fixes #10641 This adds a configuration-knob to the `unecessary_box_returns`-lint which allows _not_ linting a `fn() -> Box<T>` if `T` is "large". The default byte size above which we no longer lint is 128 bytes (due to https://github.com/rust-lang/rust-clippy/issues/4652#issue-505670554, also used in #9373). The overall rational is given in #10641. --- changelog: Enhancement: [`unnecessary_box_returns`]: Added new lint configuration `unnecessary-box-size` to set the maximum size of `T` in `Box<T>` to be linted [#10651](https://github.com/rust-lang/rust-clippy/pull/10651) <!-- changelog_checked --> |
||
---|---|---|
.. | ||
src | ||
book.toml | ||
README.md |