From 94acaa37c593f4952c349d663de71e3f1990926b Mon Sep 17 00:00:00 2001 From: Matan Kushner Date: Wed, 5 Feb 2020 23:03:26 -0500 Subject: [PATCH] chore: give unused function a test annotation --- src/context.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/context.rs b/src/context.rs index 6faa7884406c3..14b7fa30c972e 100644 --- a/src/context.rs +++ b/src/context.rs @@ -177,6 +177,7 @@ pub struct DirContents { } impl DirContents { + #[cfg(test)] fn from_path(base: &PathBuf) -> Result { Self::from_path_with_timeout(base, Duration::from_secs(30)) }