Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 55b486a

Browse files
authoredJul 19, 2019
Merge pull request #1673 from Pauan/web-sys-partial-eq
Adding in PartialEq and Eq to web-sys types
2 parents 2529bb0 + ed778f5 commit 55b486a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎crates/web-sys/tests/wasm/element.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ fn element() {
1414
*/
1515
let element = new_div();
1616

17+
assert_eq!(element, element);
18+
1719
assert_eq!(element.prefix(), None, "Shouldn't have a prefix");
1820
assert_eq!(element.local_name(), "div", "Should have a div local name");
1921
assert_eq!(element.tag_name(), "DIV", "Should be a div tag");

‎crates/webidl/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ impl<'src> FirstPassRecord<'src> {
541541
let mut doc_comment = Some(format!("The `{}` object\n\n{}", name, mdn_doc(name, None),));
542542

543543
let mut attrs = Vec::new();
544-
attrs.push(syn::parse_quote!( #[derive(Debug, Clone)] ));
544+
attrs.push(syn::parse_quote!( #[derive(Debug, Clone, PartialEq, Eq)] ));
545545
self.add_deprecated(data, &mut attrs);
546546
let mut import_type = ast::ImportType {
547547
vis: public(),

0 commit comments

Comments
 (0)
Please sign in to comment.