Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/lib.rs')
| -rw-r--r-- | crates/hir-def/src/lib.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/hir-def/src/lib.rs b/crates/hir-def/src/lib.rs index bcd1f37bec..adf070fe7d 100644 --- a/crates/hir-def/src/lib.rs +++ b/crates/hir-def/src/lib.rs @@ -733,9 +733,7 @@ pub struct InTypeConstLoc { impl PartialEq for InTypeConstLoc { fn eq(&self, other: &Self) -> bool { - self.id == other.id - && self.owner == other.owner - && &*self.expected_ty == &*other.expected_ty + self.id == other.id && self.owner == other.owner && *self.expected_ty == *other.expected_ty } } |