[pbs-devel] [PATCH proxmox 11/15] clippy fix: warning: this let-binding has unit value

Lukas Wagner l.wagner at proxmox.com
Tue Aug 8 10:01:49 CEST 2023


Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
 proxmox-schema/src/de/verify.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/proxmox-schema/src/de/verify.rs b/proxmox-schema/src/de/verify.rs
index 71e87b0..0ed4713 100644
--- a/proxmox-schema/src/de/verify.rs
+++ b/proxmox-schema/src/de/verify.rs
@@ -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)
-- 
2.39.2






More information about the pbs-devel mailing list