Adding in PartialEq and Eq to web-sys types

This commit is contained in:
Pauan
2019-07-18 23:12:49 +02:00
parent 2529bb0b17
commit ed778f5eb2
2 changed files with 3 additions and 1 deletions

View File

@ -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(),