Minor refactoring

This commit is contained in:
Patrick Lühne 2020-05-19 19:06:16 +02:00
parent c7d79e7b07
commit 036544d3c7
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
1 changed files with 3 additions and 3 deletions

View File

@ -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)
}