Skip to content

Commit 43071a1

Browse files
nyurikemilio
authored andcommitted
Fix explicit_into_iter_loop lint
1 parent a3f877b commit 43071a1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ cast_possible_wrap = "allow"
5858
cast_precision_loss = "allow"
5959
cast_sign_loss = "allow"
6060
default_trait_access = "allow"
61-
explicit_into_iter_loop = "allow"
6261
ignored_unit_patterns = "allow"
6362
implicit_hasher = "allow"
6463
items_after_statements = "allow"

bindgen/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ impl Bindings {
835835
};
836836

837837
if let Some(search_paths) = search_paths {
838-
for path in search_paths.into_iter() {
838+
for path in search_paths {
839839
if let Ok(path) = path.into_os_string().into_string() {
840840
options.clang_args.push("-isystem".into());
841841
options.clang_args.push(path.into_boxed_str());

0 commit comments

Comments
 (0)