mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-28 15:56:28 +00:00
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.
This commit is contained in:
parent
f14aef4769
commit
860accac55
@ -177,6 +177,10 @@ pub struct DirContents {
|
||||
}
|
||||
|
||||
impl DirContents {
|
||||
fn from_path(base: &PathBuf) -> Result<Self, std::io::Error> {
|
||||
Self::from_path_with_timeout(base, Duration::from_secs(30))
|
||||
}
|
||||
|
||||
fn from_path_with_timeout(base: &PathBuf, timeout: Duration) -> Result<Self, std::io::Error> {
|
||||
let start = SystemTime::now();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user