Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding in PartialEq and Eq to web-sys types #1673

Merged
merged 1 commit into from
Jul 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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