From dbbce5bb89da54e5733a99b1ae9321cc3ad25a38 Mon Sep 17 00:00:00 2001 From: Kurt Wolf Date: Wed, 20 Dec 2023 19:23:20 -0500 Subject: [PATCH] fix fake::Dummy codegen --- libninja/src/rust/lower_mir.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/libninja/src/rust/lower_mir.rs b/libninja/src/rust/lower_mir.rs index ac653e6..bfe2d82 100644 --- a/libninja/src/rust/lower_mir.rs +++ b/libninja/src/rust/lower_mir.rs @@ -224,7 +224,6 @@ pub fn create_sumtype_struct(schema: &Struct, config: &ConfigFlags, spec: &HirSp #[cfg_attr(feature = "fake", derive(fake::Dummy))] }).unwrap_or_default(); - let dummy = fake.then(|| { quote! { , Dummy } }).unwrap_or_default(); let docs = schema.docs.clone().to_rust_code(); let name = schema.name.to_rust_struct();