1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2024-12-22 17:44:22 +00:00

Use reference in String::from::<&CardType> call

This commit is contained in:
Steffo 2022-08-07 17:32:40 +02:00
parent dfedc23bab
commit b7403c6e0e
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -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())