Skip to content

Commit d5b1dee

Browse files
committed
tidy: Eliminate an unnecessary .into_iter()
1 parent fc3419c commit d5b1dee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/tidy/src/pal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ fn check_cfgs(contents: &mut String, file: &Path,
130130
tidy_error!(bad, "{}:{}: platform-specific cfg: {}", file.display(), line, cfg);
131131
};
132132

133-
for (idx, cfg) in cfgs.into_iter() {
133+
for (idx, cfg) in cfgs {
134134
// Sanity check that the parsing here works
135135
if !*saw_target_arch && cfg.contains("target_arch") { *saw_target_arch = true }
136136
if !*saw_cfg_bang && cfg.contains("cfg!") { *saw_cfg_bang = true }

0 commit comments

Comments
 (0)