code cleanup

This commit is contained in:
2023-01-24 22:35:00 +01:00
parent 26781cd810
commit 1d2128ca15
4 changed files with 1 additions and 35 deletions

View File

@@ -15,14 +15,6 @@ impl RecursivePathFetch {
}
}
pub fn new(path: String) -> Self {
return Self {
paths: vec![],
ends_with: "".to_string(),
path
}
}
pub fn fetch(&mut self) -> Result<Vec<String>, String> {
if let Err(error) = self.read_dir(self.path.clone()) {
return Err(error);