Fix webidl crate

This commit is contained in:
Alex Crichton 2018-07-05 21:25:40 -07:00
parent 5a776c16b2
commit f4b49226b6

View File

@ -171,6 +171,7 @@ impl WebidlParse<()> for webidl::ast::NonPartialInterface {
pub_token: Default::default(), pub_token: Default::default(),
}), }),
name: rust_ident(&self.name), name: rust_ident(&self.name),
attrs: Vec::new(),
}), }),
}); });
@ -379,7 +380,7 @@ impl<'a> WebidlParse<&'a str> for webidl::ast::StaticOperation {
if util::is_chrome_only(&self.extended_attributes) { if util::is_chrome_only(&self.extended_attributes) {
return Ok(()) return Ok(())
} }
create_basic_method( create_basic_method(
&self.arguments, &self.arguments,
self.name.as_ref(), self.name.as_ref(),