diff --git a/crates/webidl/Cargo.toml b/crates/webidl/Cargo.toml index b4c79bc7..75a04c3b 100644 --- a/crates/webidl/Cargo.toml +++ b/crates/webidl/Cargo.toml @@ -20,4 +20,4 @@ proc-macro2 = "0.4.8" quote = '0.6' syn = { version = '0.15', features = ['full'] } wasm-bindgen-backend = { version = "=0.2.44", path = "../backend" } -weedle = "0.8" +weedle = "0.9" diff --git a/crates/webidl/src/idl_type.rs b/crates/webidl/src/idl_type.rs index cd6877af..b6b39eb1 100644 --- a/crates/webidl/src/idl_type.rs +++ b/crates/webidl/src/idl_type.rs @@ -300,6 +300,12 @@ impl<'a> ToIdlType<'a> for AttributedType<'a> { } } +impl<'a> ToIdlType<'a> for AttributedNonAnyType<'a> { + fn to_idl_type(&self, record: &FirstPassRecord<'a>) -> IdlType<'a> { + self.type_.to_idl_type(record) + } +} + impl<'a> ToIdlType<'a> for Identifier<'a> { fn to_idl_type(&self, record: &FirstPassRecord<'a>) -> IdlType<'a> { if self.0 == "DOMTimeStamp" {