new lint: `drain_collect` Closes #10818. This adds a new lint that looks for `.drain(..).collect()` and suggests replacing it with `mem::take`. changelog: [`drain_collect`]: new lint |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| README.md | ||
new lint: `drain_collect` Closes #10818. This adds a new lint that looks for `.drain(..).collect()` and suggests replacing it with `mem::take`. changelog: [`drain_collect`]: new lint |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| README.md | ||