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:
parent
dfedc23bab
commit
b7403c6e0e
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue