mirror of
https://forge.katzen.cafe/katzen-cafe/iowo.git
synced 2024-11-23 22:08:44 +01:00
chore: use to_owned instead of to_string
This commit is contained in:
parent
1df57eba6b
commit
98f4a6cdeb
|
@ -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