From 98f4a6cdeba19ae6ce0d2a20c16104d1dbfc38de Mon Sep 17 00:00:00 2001 From: MultisampledNight Date: Sun, 21 Jan 2024 21:00:36 +0100 Subject: [PATCH] chore: use to_owned instead of to_string --- crates/app/src/config/config_file.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/app/src/config/config_file.rs b/crates/app/src/config/config_file.rs index aaf92d1..15f660c 100644 --- a/crates/app/src/config/config_file.rs +++ b/crates/app/src/config/config_file.rs @@ -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))), } } }