File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ impl Config {
193
193
194
194
let mut any_missing = false ;
195
195
for crate_name in self . crates . keys ( ) {
196
- if !list_of_crates. contains ( & * crate_name) {
196
+ if !list_of_crates. contains ( crate_name) {
197
197
error ! (
198
198
"check-config failed: crate `{}` is not available." ,
199
199
crate_name
@@ -225,7 +225,7 @@ impl Config {
225
225
226
226
let mut any_missing = false ;
227
227
for repo_name in self . github_repos . keys ( ) {
228
- if !list_of_crates. contains ( & * repo_name) {
228
+ if !list_of_crates. contains ( repo_name) {
229
229
error ! (
230
230
"check-config failed: GitHub repo `{}` is missing" ,
231
231
repo_name
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ fn run_cargo<DB: WriteResults>(
99
99
rustflags. push_str ( tc_rustflags) ;
100
100
}
101
101
102
- let rustflags_env = if let Some ( & "doc" ) = args. get ( 0 ) {
102
+ let rustflags_env = if let Some ( & "doc" ) = args. first ( ) {
103
103
"RUSTDOCFLAGS"
104
104
} else {
105
105
"RUSTFLAGS"
You can’t perform that action at this time.
0 commit comments