Merge pull request #2 from Namularbre/hotfix/2.0.1
fix: follow clippy recommandation
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user