mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Generate PartialEq automatically
This commit is contained in:
parent
efb145e744
commit
99ac1a81cc
8 changed files with 6 additions and 42 deletions
|
@ -46,12 +46,6 @@ pub struct HTMLElement {
|
|||
dataset: MutNullableHeap<JS<DOMStringMap>>,
|
||||
}
|
||||
|
||||
impl PartialEq for HTMLElement {
|
||||
fn eq(&self, other: &HTMLElement) -> bool {
|
||||
self as *const HTMLElement == &*other
|
||||
}
|
||||
}
|
||||
|
||||
impl HTMLElement {
|
||||
pub fn new_inherited(tag_name: Atom, prefix: Option<DOMString>,
|
||||
document: &Document) -> HTMLElement {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue