Merge pull request #2 from Namularbre/hotfix/2.0.1

fix: follow clippy recommandation
This commit is contained in:
Thomas Sazerat
2026-03-23 11:57:02 +01:00
committed by GitHub
2 changed files with 2 additions and 3 deletions

View File

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

View File

@@ -1,5 +1,4 @@
use std::net::UdpSocket; use std::net::UdpSocket;
use chrono;
use colored::Colorize; use colored::Colorize;
use crate::config::Config; use crate::config::Config;