From 66d5f3418409fb8913c10b701328c56f8a557b5a 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 Former-commit-id: 94acaa37c593f4952c349d663de71e3f1990926b --- src/context.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/context.rs b/src/context.rs index 6faa7884..14b7fa30 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)) }