mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
261ca04c92
The discussion seems to have resolved that this lint is a bit "noisy" in that applying it in all places would result in a reduction in readability. A few of the trivial functions (like `Path::new`) are fine to leave outside of closures. The general rule seems to be that anything that is obviously an allocation (`Box`, `Vec`, `vec![]`) should be in a closure, even if it is a 0-sized allocation. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |