From a60cd8f2a96aae3f7db8dfccec2aa5cf21f8c411 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 25 Aug 2024 17:30:02 +0200 Subject: refactor(treewide): Conform to `cargo clippy` --- src/storage/video_database/extractor_hash.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/storage/video_database/extractor_hash.rs') diff --git a/src/storage/video_database/extractor_hash.rs b/src/storage/video_database/extractor_hash.rs index 09ca2ea..62a9eda 100644 --- a/src/storage/video_database/extractor_hash.rs +++ b/src/storage/video_database/extractor_hash.rs @@ -90,7 +90,6 @@ impl ExtractorHash { self.hash() .to_hex() .chars() - .into_iter() .take(needed_chars) .collect::(), )) @@ -102,7 +101,7 @@ impl ExtractorHash { let needed_chars = s.0.len(); for hash in all_hashes { - if &hash.to_hex()[..needed_chars] == s.0 { + if hash.to_hex()[..needed_chars] == s.0 { return Ok(hash); } } -- cgit 1.4.1