fix: resolve ownership and borrowing errors and add serde traits
Co-authored-by: aider (openai/andrew/openrouter/google/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -71,7 +71,7 @@ pub fn mode_list(
|
||||
|
||||
for item_with_meta in items_with_meta {
|
||||
let item = item_with_meta.item;
|
||||
let tags: Vec<String> = item_with_meta.tags.into_iter().map(|t| t.name).collect();
|
||||
let tags: Vec<String> = item_with_meta.tags.iter().map(|t| t.name.clone()).collect();
|
||||
let meta = item_with_meta.meta_as_map();
|
||||
|
||||
let mut item_path = data_path.clone();
|
||||
@@ -297,7 +297,7 @@ fn show_list_structured(
|
||||
for item_with_meta in items_with_meta {
|
||||
let item = item_with_meta.item;
|
||||
let item_id = item.id.unwrap();
|
||||
let tags = item_with_meta.tags.into_iter().map(|t| t.name).collect();
|
||||
let tags: Vec<String> = item_with_meta.tags.iter().map(|t| t.name.clone()).collect();
|
||||
let meta = item_with_meta.meta_as_map();
|
||||
|
||||
let mut item_path = data_path.clone();
|
||||
|
||||
Reference in New Issue
Block a user