Skip to content

Commit 3fd9db3

Browse files
committed
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.
1 parent d2cda90 commit 3fd9db3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
256256
actual_val.dereference(self.location).to_rvalue()
257257
} else {
258258
assert!(
259-
!((actual_ty.is_vector() && !expected_ty.is_vector())
260-
|| (!actual_ty.is_vector() && expected_ty.is_vector())),
259+
(!expected_ty.is_vector() || actual_ty.is_vector())
260+
&& (expected_ty.is_vector() || !actual_ty.is_vector()),
261261
"{:?} ({}) -> {:?} ({}), index: {:?}[{}]",
262262
actual_ty,
263263
actual_ty.is_vector(),

0 commit comments

Comments
 (0)