diff options
author | Matan Kushner <hello@matchai.dev> | 2020-02-05 23:03:26 -0500 |
---|---|---|
committer | Matan Kushner <hello@matchai.dev> | 2020-02-05 23:03:26 -0500 |
commit | 66d5f3418409fb8913c10b701328c56f8a557b5a (patch) | |
tree | cdde237e897d8e7b32655cf164c1213ade7be6f3 | |
parent | 670c7a3591944b960eb069e2912b32e4223de94a (diff) |
chore: give unused function a test annotation
Former-commit-id: 94acaa37c593f4952c349d663de71e3f1990926b
-rw-r--r-- | src/context.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/context.rs b/src/context.rs index 6faa78844..14b7fa30c 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, std::io::Error> { Self::from_path_with_timeout(base, Duration::from_secs(30)) } |