Skip to content

Commit 560354e

Browse files
committed
tests: Minor rustc warning fixes.
1 parent 09f6c1d commit 560354e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ fn create_bindgen_builder(header: &PathBuf) -> Result<Option<Builder>, Error> {
258258
} else if line.contains("bindgen-osx-only") {
259259
let prepend_flags = ["--raw-line", "#![cfg(target_os=\"macos\")]"];
260260
flags = prepend_flags
261-
.into_iter()
261+
.iter()
262262
.map(ToString::to_string)
263263
.chain(flags)
264264
.collect();
@@ -299,7 +299,7 @@ fn create_bindgen_builder(header: &PathBuf) -> Result<Option<Builder>, Error> {
299299
];
300300

301301
let args = prepend
302-
.into_iter()
302+
.iter()
303303
.map(ToString::to_string)
304304
.chain(flags.into_iter());
305305

0 commit comments

Comments
 (0)