clippy: fix Mutex with unused value
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
1 parent
3d8cd0ced7
commit
81b2a87232
3 files changed
+5
-5
No files matched your search
@@ -125,7 +125,7 @@ pub fn update_dns(
|
||||
) -> Result<Value, Error> {
|
||||
|
||||
lazy_static! {
|
||||
static ref MUTEX: Arc<Mutex<usize>> = Arc::new(Mutex::new(0));
|
||||
static ref MUTEX: Arc<Mutex<()>> = Arc::new(Mutex::new(()));
|
||||
}
|
||||
|
||||
let _guard = MUTEX.lock();
|
||||
|
||||
Reference in new issue
Block a user