From af177724d4d2095c20a9573a0b5a3d348c978f01 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Thu, 15 Sep 2022 13:28:32 -0500 Subject: [PATCH] https://github.com/microsoft/win32metadata/issues/909 --- crates/libs/bindgen/src/structs.rs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/crates/libs/bindgen/src/structs.rs b/crates/libs/bindgen/src/structs.rs index a6ae49ef6b..9f7910fdf8 100644 --- a/crates/libs/bindgen/src/structs.rs +++ b/crates/libs/bindgen/src/structs.rs @@ -16,15 +16,10 @@ fn gen_struct_with_name(gen: &Gen, def: TypeDef, struct_name: &str, cfg: &Cfg) - let name = to_ident(struct_name); if gen.reader.type_def_fields(def).next().is_none() { - if name.as_str().ends_with("Vtbl") { - // This just omits some useless struct declarations like `IDDVideoPortContainerVtbl` - return quote! {}; - } else { - return quote! { - #[repr(C)] - pub struct #name(pub u8); - }; - } + return quote! { + #[repr(C)] + pub struct #name(pub u8); + }; } let flags = gen.reader.type_def_flags(def);