aboutsummaryrefslogtreecommitdiffstats
path: root/src/storage/video_database/extractor_hash.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-25 17:30:02 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-25 17:30:02 +0200
commita60cd8f2a96aae3f7db8dfccec2aa5cf21f8c411 (patch)
tree24dc96e5384cf9309ae4ec00d6d91497e3253484 /src/storage/video_database/extractor_hash.rs
parentdocs(yt_dlp/progress_hook): Add a note about the possibility to calculate vid... (diff)
downloadyt-a60cd8f2a96aae3f7db8dfccec2aa5cf21f8c411.zip
refactor(treewide): Conform to `cargo clippy`
Diffstat (limited to 'src/storage/video_database/extractor_hash.rs')
-rw-r--r--src/storage/video_database/extractor_hash.rs3
1 files changed, 1 insertions, 2 deletions
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::<String>(),
))
@@ -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);
}
}