Changed to_path_buf to clone to better show what it is doing

This commit is contained in:
2024-02-05 02:01:01 -06:00
parent 24375ae0c7
commit c5cfacfa1b

View File

@@ -43,7 +43,7 @@ impl Directory {
let errors: Vec<DirError> = io_errors.chain(dir_errors).chain(file_errors).collect(); let errors: Vec<DirError> = io_errors.chain(dir_errors).chain(file_errors).collect();
Ok(Directory{ files, directories, path: path.to_path_buf(), errors }) Ok(Directory{ files, directories, path: path.clone(), errors })
} }