Apply clippy fixes

This commit is contained in:
Dennis
2024-05-30 16:55:33 +02:00
parent 699ac31383
commit 6960bd42c5
2 changed files with 28 additions and 21 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
use std::{collections::VecDeque, fs, path::PathBuf};
use std::{collections::VecDeque, fs, path::{Path, PathBuf}};
// TODO: port into toolbox-rs
pub struct LexicographicFileWalker {
@@ -7,11 +7,11 @@ pub struct LexicographicFileWalker {
}
impl LexicographicFileWalker {
pub fn new(path: &PathBuf) -> Self {
pub fn new(path: &Path) -> Self {
let mut dirs = VecDeque::new();
if path.is_dir() {
dirs.push_back(path.clone());
dirs.push_back(path.to_path_buf());
}
Self {