mirror of
https://github.com/topjohnwu/cxx.git
synced 2025-02-24 10:03:39 +00:00
Make PartialEq work with reference lhs
This commit is contained in:
parent
ba5eb2de8c
commit
438e26034c
@ -54,3 +54,15 @@ impl PartialEq<Atom> for Type {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialEq<Atom> for &Ident {
|
||||
fn eq(&self, atom: &Atom) -> bool {
|
||||
*self == atom
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialEq<Atom> for &Type {
|
||||
fn eq(&self, atom: &Atom) -> bool {
|
||||
*self == atom
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user