mirror of
https://github.com/Steffo99/patched-porobot.git
synced 2024-12-23 01:54: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!(
|
doc!(
|
||||||
fields.code => card.code,
|
fields.code => card.code,
|
||||||
fields.name => card.name,
|
fields.name => card.name,
|
||||||
fields.r#type => String::from(card.r#type),
|
fields.r#type => String::from(&card.r#type),
|
||||||
fields.set => card.set
|
fields.set => card.set
|
||||||
.localized(&globals.sets)
|
.localized(&globals.sets)
|
||||||
.map(|cs| cs.name.to_owned())
|
.map(|cs| cs.name.to_owned())
|
||||||
|
|
Loading…
Reference in a new issue