From f188f969749c413ea100093862d40617bec07ee2 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Tue, 26 Jul 2022 16:49:05 +0800 Subject: [PATCH] Fix missing feature gate. --- src/module/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/module/mod.rs b/src/module/mod.rs index 2138995f..541d0532 100644 --- a/src/module/mod.rs +++ b/src/module/mod.rs @@ -504,6 +504,7 @@ impl Module { #[inline(always)] pub fn clear(&mut self) { self.id.clear(); + #[cfg(feature = "metadata")] self.doc.clear(); self.internal = false; self.standard = false;