chore(clippy): .to_string -> .clone
All checks were successful
Build/test / Build and test (push) Successful in 2m16s
All checks were successful
Build/test / Build and test (push) Successful in 2m16s
This commit is contained in:
parent
22bdfc9d87
commit
bfac58509a
1 changed files with 2 additions and 2 deletions
|
@ -303,7 +303,7 @@ impl Entity {
|
||||||
let mut map = BTreeMap::new();
|
let mut map = BTreeMap::new();
|
||||||
for (key, val) in json_map {
|
for (key, val) in json_map {
|
||||||
map.insert(
|
map.insert(
|
||||||
Lang(key.to_string()),
|
Lang(key.clone()),
|
||||||
val.as_array()
|
val.as_array()
|
||||||
.ok_or(EntityError::ExpectedAliasArray)?
|
.ok_or(EntityError::ExpectedAliasArray)?
|
||||||
.iter()
|
.iter()
|
||||||
|
@ -333,7 +333,7 @@ impl Entity {
|
||||||
for (key, val) in json_map {
|
for (key, val) in json_map {
|
||||||
let obj = val.as_object().ok_or(EntityError::ExpectedObject)?;
|
let obj = val.as_object().ok_or(EntityError::ExpectedObject)?;
|
||||||
map.insert(
|
map.insert(
|
||||||
SiteName(key.to_string()),
|
SiteName(key.clone()),
|
||||||
SitelinkValue {
|
SitelinkValue {
|
||||||
title: obj
|
title: obj
|
||||||
.get("title")
|
.get("title")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue