mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Generate PartialEq automatically
This commit is contained in:
parent
efb145e744
commit
99ac1a81cc
8 changed files with 6 additions and 42 deletions
|
@ -53,12 +53,6 @@ pub struct HTMLCanvasElement {
|
|||
context: DOMRefCell<Option<CanvasContext>>,
|
||||
}
|
||||
|
||||
impl PartialEq for HTMLCanvasElement {
|
||||
fn eq(&self, other: &HTMLCanvasElement) -> bool {
|
||||
self as *const HTMLCanvasElement == &*other
|
||||
}
|
||||
}
|
||||
|
||||
impl HTMLCanvasElement {
|
||||
fn new_inherited(localName: Atom,
|
||||
prefix: Option<DOMString>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue