fix(fmt): Rewrite a condition according to clippy

This looks like an (inverted) exclusive-or but I still leave it as it is in clippy.
This commit is contained in:
tempdragon 2024-03-11 12:39:57 +08:00
parent d2cda90e4e
commit 3fd9db31bf

View File

@ -256,8 +256,8 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
actual_val.dereference(self.location).to_rvalue()
} else {
assert!(
!((actual_ty.is_vector() && !expected_ty.is_vector())
|| (!actual_ty.is_vector() && expected_ty.is_vector())),
(!expected_ty.is_vector() || actual_ty.is_vector())
&& (expected_ty.is_vector() || !actual_ty.is_vector()),
"{:?} ({}) -> {:?} ({}), index: {:?}[{}]",
actual_ty,
actual_ty.is_vector(),