chore: use to_owned instead of to_string
This commit is contained in:
parent
1df57eba6b
commit
98f4a6cdeb
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ impl Configs {
|
|||
{
|
||||
Some("ron") => Ok(serde_json::from_str(&fs::read_to_string(p)?)?),
|
||||
Some("json") => Ok(ron::from_str(&fs::read_to_string(p)?)?),
|
||||
e => Err(Config::UnknownExtension(e.map(str::to_string))),
|
||||
e => Err(Config::UnknownExtension(e.map(str::to_owned))),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue