Switch boolean checks
This commit is contained in:
parent
8ea0973725
commit
bc5f4c4860
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ where
|
||||||
if let (Some(t1), Some(t2)) = (t1, t2) {
|
if let (Some(t1), Some(t2)) = (t1, t2) {
|
||||||
// Simplified successfully
|
// Simplified successfully
|
||||||
// Types cannot unify if they differ in their reference mutability or simplify to different types
|
// 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 {
|
} else {
|
||||||
// Types might unify
|
// Types might unify
|
||||||
false
|
false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue