From b926eba50172601d84a7d77a440ff32a162139ef Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sun, 8 Nov 2020 16:49:59 +0800 Subject: [PATCH] Fix doc test. --- src/module/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/module/mod.rs b/src/module/mod.rs index c0e3d457..1474d8fc 100644 --- a/src/module/mod.rs +++ b/src/module/mod.rs @@ -185,8 +185,11 @@ impl Module { /// let mut module = Module::new(); /// assert!(!module.is_indexed()); /// + /// # #[cfg(not(feature = "no_module"))] + /// # { /// module.build_index(); /// assert!(module.is_indexed()); + /// # } /// ``` pub fn is_indexed(&self) -> bool { self.indexed