From 036544d3c71b6168aef32eb02da71487e116e739 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Tue, 19 May 2020 19:06:16 +0200 Subject: [PATCH] Minor refactoring --- src/ast.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ast.rs b/src/ast.rs index 15cf7f4..e74498f 100644 --- a/src/ast.rs +++ b/src/ast.rs @@ -94,10 +94,10 @@ pub struct VariableDeclaration impl std::cmp::PartialEq for VariableDeclaration { #[inline(always)] - fn eq(&self, other: &VariableDeclaration) -> bool + fn eq(&self, other: &Self) -> bool { - let l = self as *const VariableDeclaration; - let r = other as *const VariableDeclaration; + let l = self as *const Self; + let r = other as *const Self; l.eq(&r) }