Skip to content

Commit 762dbf3

Browse files
authored
Merge pull request #1324 from google/clippy5
Clippy fixes.
2 parents c8e5e72 + 354cec9 commit 762dbf3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

engine/src/conversion/analysis/type_converter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ impl<'a> TypeConverter<'a> {
251251
let i = make_ident(s);
252252
parse_quote! { #i }
253253
})
254-
.chain(typ.path.segments.into_iter())
254+
.chain(typ.path.segments)
255255
.collect();
256256
}
257257
}

engine/src/conversion/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl<'a> BridgeConverter<'a> {
114114
None => Err(ConvertError::NoContent),
115115
Some((_, items)) => {
116116
// Parse the bindgen mod.
117-
let items_to_process = items.drain(..).collect();
117+
let items_to_process = std::mem::take(items);
118118
let parser = ParseBindgen::new(self.config);
119119
let apis = parser.parse_items(items_to_process, source_file_contents)?;
120120
Self::dump_apis("parsing", &apis);

0 commit comments

Comments
 (0)