summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatan Kushner <hello@matchai.dev>2020-02-05 23:03:26 -0500
committerMatan Kushner <hello@matchai.dev>2020-02-05 23:03:26 -0500
commit66d5f3418409fb8913c10b701328c56f8a557b5a (patch)
treecdde237e897d8e7b32655cf164c1213ade7be6f3
parent670c7a3591944b960eb069e2912b32e4223de94a (diff)
chore: give unused function a test annotation
-rw-r--r--src/context.rs1
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))
}