1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-28 15:56:28 +00:00

chore: give unused function a test annotation

Former-commit-id: 94acaa37c593f4952c349d663de71e3f1990926b
This commit is contained in:
Matan Kushner 2020-02-05 23:03:26 -05:00
parent 670c7a3591
commit 66d5f34184

View File

@ -177,6 +177,7 @@ pub struct DirContents {
} }
impl DirContents { impl DirContents {
#[cfg(test)]
fn from_path(base: &PathBuf) -> Result<Self, std::io::Error> { fn from_path(base: &PathBuf) -> Result<Self, std::io::Error> {
Self::from_path_with_timeout(base, Duration::from_secs(30)) Self::from_path_with_timeout(base, Duration::from_secs(30))
} }