From 7fdb1b4d1f8d4d86969b3ce5acf9911f845ce7b9 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sun, 16 Nov 2025 13:50:55 +0100 Subject: [PATCH] dir_iter: unexport a test-only getter --- src/wutil/dir_iter.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() }