clippy fix: warning: this let-binding has unit value

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
Lukas Wagner 2023-08-08 10:01:49 +02:00 committed by Wolfgang Bumiller
parent b6abb52a78
commit 58b29dfbcf

View 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)