Skip to content

Commit 53a3653

Browse files
committed
fix: remove IDE inserted types
1 parent 5de3677 commit 53a3653

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bindgen/codegen/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3024,7 +3024,7 @@ impl Method {
30243024
let function = function_item.expect_function();
30253025
let times_seen = function.codegen(ctx, result, function_item);
30263026
let Some(times_seen) = times_seen else { return };
3027-
let signature_item: &Item = ctx.resolve_item(function.signature());
3027+
let signature_item = ctx.resolve_item(function.signature());
30283028
let mut name = match self.kind() {
30293029
MethodKind::Constructor => "new".into(),
30303030
MethodKind::Destructor => "destruct".into(),
@@ -3146,7 +3146,7 @@ impl Method {
31463146

31473147
let block = ctx.wrap_unsafe_ops(quote! ( #( #stmts );*));
31483148

3149-
let mut attrs: Vec<proc_macro2::TokenStream> = vec![attributes::inline()];
3149+
let mut attrs = vec![attributes::inline()];
31503150
attrs.extend(
31513151
function_item.annotations()
31523152
.attributes()

0 commit comments

Comments
 (0)