mirror of
https://github.com/servo/servo.git
synced 2025-07-25 08:10:21 +01:00
Impl PartialEq and Eq for DomObject (#33212)
* Impl PartialEq and Eq for DomObject Signed-off-by: Taym <haddadi.taym@gmail.com> * move to Eq and PartialEq to domobject_derive Signed-off-by: Taym <haddadi.taym@gmail.com> --------- Signed-off-by: Taym <haddadi.taym@gmail.com>
This commit is contained in:
parent
31e84a8c48
commit
6c0394bc80
3 changed files with 8 additions and 12 deletions
|
@ -3056,12 +3056,6 @@ impl IDLInterface for {name} {{
|
|||
{check}
|
||||
}}
|
||||
}}
|
||||
|
||||
impl PartialEq for {name} {{
|
||||
fn eq(&self, other: &{name}) -> bool {{
|
||||
self as *const {name} == other
|
||||
}}
|
||||
}}
|
||||
"""
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue