mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Remove unused variable warnings (in both cases we need to know there is a value, we don't care what it is)
This commit is contained in:
parent
74a0e044e7
commit
e3afedb552
@ -28,7 +28,7 @@ pub fn can_we_load_net_json(results: &mut Vec<SanityCheck>) {
|
||||
if path.exists() {
|
||||
if let Ok(str) = std::fs::read_to_string(path) {
|
||||
match serde_json::from_str::<Value>(&str) {
|
||||
Ok(json) => {
|
||||
Ok(_json) => {
|
||||
results.push(SanityCheck{
|
||||
name: "network.json is parseable JSON".to_string(),
|
||||
success: true,
|
||||
@ -50,7 +50,7 @@ pub fn can_we_load_net_json(results: &mut Vec<SanityCheck>) {
|
||||
|
||||
pub fn can_we_parse_net_json(results: &mut Vec<SanityCheck>) {
|
||||
match lqos_config::NetworkJson::load() {
|
||||
Ok(json) => {
|
||||
Ok(_json) => {
|
||||
results.push(SanityCheck{
|
||||
name: "network.json is valid JSON".to_string(),
|
||||
success: true,
|
||||
|
Loading…
Reference in New Issue
Block a user