From 860accac558750ba3574c26dd285760a77a4cfb1 Mon Sep 17 00:00:00 2001 From: Matan Kushner Date: Mon, 3 Feb 2020 17:13:59 -0500 Subject: [PATCH] chore: readd from_path function Despite the function not being used directly, it was being used in tests. Readding the function so tests will pass. --- src/context.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/context.rs b/src/context.rs index 46c51177..6faa7884 100644 --- a/src/context.rs +++ b/src/context.rs @@ -177,6 +177,10 @@ pub struct DirContents { } impl DirContents { + fn from_path(base: &PathBuf) -> Result { + Self::from_path_with_timeout(base, Duration::from_secs(30)) + } + fn from_path_with_timeout(base: &PathBuf, timeout: Duration) -> Result { let start = SystemTime::now();