Skip to content

Commit

Permalink
Merge pull request #1324 from google/clippy5
Browse files Browse the repository at this point in the history
Clippy fixes.
  • Loading branch information
adetaylor authored Aug 29, 2023
2 parents c8e5e72 + 354cec9 commit 762dbf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engine/src/conversion/analysis/type_converter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ impl<'a> TypeConverter<'a> {
let i = make_ident(s);
parse_quote! { #i }
})
.chain(typ.path.segments.into_iter())
.chain(typ.path.segments)
.collect();
}
}
Expand Down
2 changes: 1 addition & 1 deletion engine/src/conversion/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ impl<'a> BridgeConverter<'a> {
None => Err(ConvertError::NoContent),
Some((_, items)) => {
// Parse the bindgen mod.
let items_to_process = items.drain(..).collect();
let items_to_process = std::mem::take(items);
let parser = ParseBindgen::new(self.config);
let apis = parser.parse_items(items_to_process, source_file_contents)?;
Self::dump_apis("parsing", &apis);
Expand Down

0 comments on commit 762dbf3

Please sign in to comment.