Skip to content

Commit

Permalink
Merge pull request #1673 from Pauan/web-sys-partial-eq
Browse files Browse the repository at this point in the history
Adding in PartialEq and Eq to web-sys types
  • Loading branch information
alexcrichton committed Jul 19, 2019
2 parents 2529bb0 + ed778f5 commit 55b486a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions crates/web-sys/tests/wasm/element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ fn element() {
*/
let element = new_div();

assert_eq!(element, element);

assert_eq!(element.prefix(), None, "Shouldn't have a prefix");
assert_eq!(element.local_name(), "div", "Should have a div local name");
assert_eq!(element.tag_name(), "DIV", "Should be a div tag");
Expand Down
2 changes: 1 addition & 1 deletion crates/webidl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ impl<'src> FirstPassRecord<'src> {
let mut doc_comment = Some(format!("The `{}` object\n\n{}", name, mdn_doc(name, None),));

let mut attrs = Vec::new();
attrs.push(syn::parse_quote!( #[derive(Debug, Clone)] ));
attrs.push(syn::parse_quote!( #[derive(Debug, Clone, PartialEq, Eq)] ));
self.add_deprecated(data, &mut attrs);
let mut import_type = ast::ImportType {
vis: public(),
Expand Down

0 comments on commit 55b486a

Please sign in to comment.