Skip to content

Commit

Permalink
fix: remove IDE inserted types
Browse files Browse the repository at this point in the history
  • Loading branch information
oberrich committed Jan 16, 2025
1 parent 5de3677 commit 53a3653
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindgen/codegen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3024,7 +3024,7 @@ impl Method {
let function = function_item.expect_function();
let times_seen = function.codegen(ctx, result, function_item);
let Some(times_seen) = times_seen else { return };
let signature_item: &Item = ctx.resolve_item(function.signature());
let signature_item = ctx.resolve_item(function.signature());
let mut name = match self.kind() {
MethodKind::Constructor => "new".into(),
MethodKind::Destructor => "destruct".into(),
Expand Down Expand Up @@ -3146,7 +3146,7 @@ impl Method {

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

let mut attrs: Vec<proc_macro2::TokenStream> = vec![attributes::inline()];
let mut attrs = vec![attributes::inline()];
attrs.extend(
function_item.annotations()
.attributes()
Expand Down

0 comments on commit 53a3653

Please sign in to comment.