Fix missing feature gate.

This commit is contained in:
Stephen Chung 2022-07-26 16:49:05 +08:00
parent a76f4dd6d3
commit f188f96974

View File

@ -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;