refactor: no need to consume iterator items

This commit is contained in:
beeb
2023-01-08 13:08:27 +01:00
parent ad467d70a8
commit cc243f413a

View File

@@ -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> {