diff --git a/src/search/cardsearch.rs b/src/search/cardsearch.rs index 73ec6da..54984eb 100644 --- a/src/search/cardsearch.rs +++ b/src/search/cardsearch.rs @@ -211,7 +211,7 @@ impl CardSearchEngine { doc!( fields.code => card.code, fields.name => card.name, - fields.r#type => String::from(card.r#type), + fields.r#type => String::from(&card.r#type), fields.set => card.set .localized(&globals.sets) .map(|cs| cs.name.to_owned())