fix: update meta map iteration to use tuple pattern
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -115,7 +115,7 @@ fn build_item_list(conn: &Connection, params: &ListQueryParams, columns: &[Colum
|
|||||||
let meta: HashMap<String, String> = meta_map.get(&item_id)
|
let meta: HashMap<String, String> = meta_map.get(&item_id)
|
||||||
.map(|metas| {
|
.map(|metas| {
|
||||||
metas.iter()
|
metas.iter()
|
||||||
.map(|meta| (meta.name.clone(), meta.value.clone()))
|
.map(|(name, value)| (name.clone(), value.clone()))
|
||||||
.collect()
|
.collect()
|
||||||
})
|
})
|
||||||
.unwrap_or_default();
|
.unwrap_or_default();
|
||||||
|
|||||||
Reference in New Issue
Block a user