fixed typing mistake

This commit is contained in:
2023-01-21 17:34:09 +01:00
parent c8eb5d58ea
commit 055ac64e48
2 changed files with 3 additions and 3 deletions

BIN
docki Executable file

Binary file not shown.

View File

@@ -9,7 +9,7 @@ pub struct Build {
} }
impl Build { impl Build {
fn build_dir(&self, path: String) -> Vec<Result<(), String>> { fn build_dir(&self, path: &str) -> Vec<Result<(), String>> {
let mut results = vec![]; let mut results = vec![];
let Ok(dirs) = fs::read_dir(path) else { let Ok(dirs) = fs::read_dir(path) else {
return vec![Err("could not read file system".to_string())] return vec![Err("could not read file system".to_string())]
@@ -27,7 +27,7 @@ impl Build {
if entry.path().is_dir() { if entry.path().is_dir() {
results = [ results = [
results, vec![self.build_file(&path)] results, self.build_dir(&path)
].concat() ].concat()
} else { } else {
results.push(self.build_file(&path)); results.push(self.build_file(&path));
@@ -60,7 +60,7 @@ impl Command for Build {
let path = format!("{project_cwd}/docs/"); let path = format!("{project_cwd}/docs/");
let mut error_count = 0; let mut error_count = 0;
for result in self.build_dir(path) { for result in self.build_dir(&path) {
match result { match result {
Err(e) => { Err(e) => {
error_count += 1; error_count += 1;