]> git.proxmox.com Git - proxmox.git/commitdiff
clippy fix: warning: this let-binding has unit value
authorLukas Wagner <l.wagner@proxmox.com>
Tue, 8 Aug 2023 08:01:49 +0000 (10:01 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 8 Aug 2023 09:29:36 +0000 (11:29 +0200)
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
proxmox-schema/src/de/verify.rs

index 71e87b0e615ff3dfe0fb48f89f918bf2aa7f90b6..0ed47138c815b8f97c5d9bae3c6dcae7d0d1ea09 100644 (file)
@@ -292,6 +292,7 @@ impl<'de> de::Visitor<'de> for Visitor {
             _ => return Err(E::invalid_type(Unexpected::Str(value), &self)),
         };
 
+        #[allow(clippy::let_unit_value)]
         let _: () = schema.check_constraints(value).map_err(E::custom)?;
 
         Ok(Verifier)