diff --git a/Cargo.lock b/Cargo.lock index c6b0588e..01571e7d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -820,7 +820,7 @@ dependencies = [ [[package]] name = "maze-serval" -version = "0.2.15" +version = "0.2.16" dependencies = [ "anyhow", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 8b3e97fd..412ceea3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "maze-serval" description = "Serval helps you prepare data for Maze and Trapper" repository = "https://github.com/wsyxbcl/Serval" authors = ["wsyxbcl "] -version = "0.2.15" +version = "0.2.16" edition = "2021" license = "GPL-3.0-or-later" keywords = ["camtrap", "camera-trap"] diff --git a/src/utils.rs b/src/utils.rs index b5b84ebb..82713973 100755 --- a/src/utils.rs +++ b/src/utils.rs @@ -185,7 +185,7 @@ pub fn resources_align( fs::copy(resource, output_path)?; pb.inc(1); } - } else if !visited_path.contains(&resource_parent.to_str().unwrap().to_string()) { + } else if !visited_path.contains(resource_parent.to_str().unwrap()) { visited_path.insert(resource_parent.to_str().unwrap().to_string()); println!( "DRYRUN sample: From {} to {}",