fix: follow clippy recommandation

This commit is contained in:
Namu
2026-03-23 11:31:21 +01:00
parent 6462493b98
commit 4f46b4a932
2 changed files with 2 additions and 3 deletions

View File

@@ -68,8 +68,8 @@ impl Config {
buf
}
fn parse_buffer(buf: &String) -> serde_json::Map<String, Value> {
let json: Value = serde_json::from_str(&buf)
fn parse_buffer(buf: &str) -> serde_json::Map<String, Value> {
let json: Value = serde_json::from_str(buf)
.expect("Error parsing config file");
let object_data = json.as_object()