From ca0008174aa08a329358b93693dee189c78b75ac Mon Sep 17 00:00:00 2001 From: lqd Date: Thu, 16 May 2019 18:52:25 +0200 Subject: [PATCH] Update weedle to version 0.9 --- crates/webidl/Cargo.toml | 2 +- crates/webidl/src/idl_type.rs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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" {