Skip to content

Commit 96c4fa3

Browse files
committed
Auto merge of #645 - Mark-Simulacrum:clippy, r=Mark-Simulacrum
Fix clippy lints
2 parents 776c98c + ef8fb94 commit 96c4fa3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ impl Config {
193193

194194
let mut any_missing = false;
195195
for crate_name in self.crates.keys() {
196-
if !list_of_crates.contains(&*crate_name) {
196+
if !list_of_crates.contains(crate_name) {
197197
error!(
198198
"check-config failed: crate `{}` is not available.",
199199
crate_name
@@ -225,7 +225,7 @@ impl Config {
225225

226226
let mut any_missing = false;
227227
for repo_name in self.github_repos.keys() {
228-
if !list_of_crates.contains(&*repo_name) {
228+
if !list_of_crates.contains(repo_name) {
229229
error!(
230230
"check-config failed: GitHub repo `{}` is missing",
231231
repo_name

src/runner/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ fn run_cargo<DB: WriteResults>(
9999
rustflags.push_str(tc_rustflags);
100100
}
101101

102-
let rustflags_env = if let Some(&"doc") = args.get(0) {
102+
let rustflags_env = if let Some(&"doc") = args.first() {
103103
"RUSTDOCFLAGS"
104104
} else {
105105
"RUSTFLAGS"

0 commit comments

Comments
 (0)