From d600a7a063db360d4aa4d863a99687eba99316f9 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Tue, 3 Sep 2024 14:00:41 -0500 Subject: [PATCH] simpler --- crates/libs/bindgen/src/rust/winrt_methods.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/crates/libs/bindgen/src/rust/winrt_methods.rs b/crates/libs/bindgen/src/rust/winrt_methods.rs index 8a328ec259..2dd4c433c2 100644 --- a/crates/libs/bindgen/src/rust/winrt_methods.rs +++ b/crates/libs/bindgen/src/rust/winrt_methods.rs @@ -158,15 +158,7 @@ pub fn writer( } } } - metadata::InterfaceKind::Static => { - quote! { - #features - pub fn #name<#generics>(#params) #return_type_tokens #where_clause { - Self::#interface_name(|this| unsafe { #vcall }) - } - } - } - metadata::InterfaceKind::Composable => { + metadata::InterfaceKind::Static | metadata::InterfaceKind::Composable => { quote! { #features pub fn #name<#generics>(#params) #return_type_tokens #where_clause {