mirror of
https://github.com/perstarkse/minne.git
synced 2026-12-02 09:53:57 +01:00
chore: clippy performance improvements
This commit is contained in:
1 parent
35ff4e1464
commit
c3a7e8dc59
11 files changed
+51
-55
No files matched your search
@@ -46,9 +46,7 @@ pub async fn ingest_data(
|
||||
|
||||
let futures: Vec<_> = payloads
|
||||
.into_iter()
|
||||
.map(|object| {
|
||||
IngestionTask::create_and_add_to_db(object.clone(), user.id.clone(), &state.db)
|
||||
})
|
||||
.map(|object| IngestionTask::create_and_add_to_db(object, user.id.clone(), &state.db))
|
||||
.collect();
|
||||
|
||||
try_join_all(futures).await?;
|
||||
|
||||
Reference in new issue
Block a user