Skip to content

Commit

Permalink
infer return type
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Jun 11, 2024
1 parent 7c615c4 commit 5a55741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/libs/bindgen/src/rust/com_methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ pub fn writer(
quote! {
#features
pub unsafe fn #name<#generics>(&self, #params) -> #return_type #where_clause {
let mut result__: #return_type = core::mem::zeroed();
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).#vname)(windows_core::Interface::as_raw(self), &mut result__, #args);
result__
}
Expand Down

0 comments on commit 5a55741

Please sign in to comment.