Switch boolean checks

This commit is contained in:
Ryan Levick 2021-02-12 17:22:19 +01:00
parent 8ea0973725
commit bc5f4c4860
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ where
if let (Some(t1), Some(t2)) = (t1, t2) {
// Simplified successfully
// Types cannot unify if they differ in their reference mutability or simplify to different types
ty1.ref_mutability() != ty2.ref_mutability() || t1 != t2
t1 != t2 || ty1.ref_mutability() != ty2.ref_mutability()
} else {
// Types might unify
false