summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2019-12-11 03:13:46 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2019-12-11 03:13:46 +0100
commit560354e4f1839be4911b1432e4307fef5a95eb96 (patch)
treee341568f16c44a95f52f790029617afec83aa75e /tests
parent09f6c1d921a987ec2b20e0033d1bbbb36b0e22ef (diff)
tests: Minor rustc warning fixes.
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index 1fe8a1ec..4824f484 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -258,7 +258,7 @@ fn create_bindgen_builder(header: &PathBuf) -> Result<Option<Builder>, Error> {
} else if line.contains("bindgen-osx-only") {
let prepend_flags = ["--raw-line", "#![cfg(target_os=\"macos\")]"];
flags = prepend_flags
- .into_iter()
+ .iter()
.map(ToString::to_string)
.chain(flags)
.collect();
@@ -299,7 +299,7 @@ fn create_bindgen_builder(header: &PathBuf) -> Result<Option<Builder>, Error> {
];
let args = prepend
- .into_iter()
+ .iter()
.map(ToString::to_string)
.chain(flags.into_iter());