]> git.lizzy.rs Git - rust.git/commit - compiler/rustc_query_system/src/query/mod.rs
Rollup merge of #106398 - jyn514:fix-clippy, r=thomcc
authorMatthias Krüger <matthias.krueger@famsik.de>
Wed, 4 Jan 2023 22:39:49 +0000 (23:39 +0100)
committerGitHub <noreply@github.com>
Wed, 4 Jan 2023 22:39:49 +0000 (23:39 +0100)
commit5eb9698b4e92ae8a7ff56bfec5abff3b90337b78
tree4260debcacbc18f062d0bcb1c2717a44da555c5e
parentb41d81ca96ca293987ad5ada06107017d9eb4cd2
parent3534e0a393b447791fffaa84a97114dd3c761890
Rollup merge of #106398 - jyn514:fix-clippy, r=thomcc

Fix a few clippy lints in libtest

- Remove unnecessary references and dereferences
- Use `.contains` instead of `a <= x && x <= b`
- Use `mem::take` instead of `mem::replace` where possible

cc https://github.com/rust-lang/rust/pull/106394 :)