mirror of
https://github.com/sreedevk/deduplicator.git
synced 2026-08-26 02:04:39 +00:00
refactor: no need to consume iterator items
This commit is contained in:
@@ -73,8 +73,8 @@ fn index_files(files: Vec<String>, connection: &sqlite::Connection) -> Result<()
|
||||
.collect();
|
||||
|
||||
hashed
|
||||
.into_iter()
|
||||
.try_for_each(|file| database::put(&file, connection))
|
||||
.iter()
|
||||
.try_for_each(|file| database::put(file, connection))
|
||||
}
|
||||
|
||||
pub fn hash_file(filepath: &str) -> Result<String> {
|
||||
|
||||
Reference in New Issue
Block a user