avoid compiler warnings

This commit is contained in:
Dietmar Maurer
2019-01-30 18:25:37 +01:00
parent 34f956bc25
commit 9f49fe1d5d
18 changed files with 60 additions and 119 deletions

View File

@ -8,7 +8,6 @@ use crate::api2::*;
use lazy_static::lazy_static;
use std::io::{BufRead, BufReader};
use std::sync::{Arc, Mutex};
use openssl::sha;
use regex::Regex;
@ -61,7 +60,7 @@ fn update_dns(
static ref MUTEX: Arc<Mutex<usize>> = Arc::new(Mutex::new(0));
}
let guard = MUTEX.lock();
let _guard = MUTEX.lock();
let search = tools::required_string_param(&param, "search")?;