Fix a few clippy lints in libtest#106398
Conversation
|
r? @thomcc (rustbot has picked a reviewer for you, use r? to override) |
|
@bors rollup |
|
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
|
Clippy should ideally suggest methods like |
|
ah good point - I can switch to using those APIs in libtest |
- Remove unnecessary references and dereferences - Use `.contains` instead of `a <= x && x <= b` - Use `mem::take` instead of `mem::replace` where possible
31a86d8 to
3534e0a
Compare
|
These look fine to me. @bors r+ |
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#106391 (rustdoc: allow popover child links to work) - rust-lang#106398 (Fix a few clippy lints in libtest) - rust-lang#106412 (Fix link generation for local primitive types in rustdoc JSON output) - rust-lang#106437 (rustdoc: fix buggy JS check for absolute URL) - rust-lang#106451 (Merge borrowck permission checks) - rust-lang#106460 (Move tests) - rust-lang#106461 (docs: fix broken link "search bar") Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
.containsinstead ofa <= x && x <= bmem::takeinstead ofmem::replacewhere possiblecc #106394 :)