Skip to content

Commit

Permalink
chore: give unused function a test annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
matchai committed Feb 6, 2020
1 parent e0526c8 commit 94acaa3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/context.rs
Expand Up @@ -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))
}
Expand Down

0 comments on commit 94acaa3

Please sign in to comment.