diff --git a/src/wutil/dir_iter.rs b/src/wutil/dir_iter.rs index 5ae312a49..165075b4b 100644 --- a/src/wutil/dir_iter.rs +++ b/src/wutil/dir_iter.rs @@ -54,7 +54,8 @@ pub struct DirEntry { impl DirEntry { /// Return the type of this entry if it is already available, otherwise none(). - pub fn fast_type(&self) -> Option { + #[cfg(test)] + fn fast_type(&self) -> Option { self.typ.get() }