Ignore implements items explicitly

No need to warn about them because there's not much to handle with them anyway!
This commit is contained in:
Alex Crichton 2018-08-04 14:16:37 -07:00
parent 73e89fc59b
commit 72fff9c43e

View File

@ -181,12 +181,14 @@ impl<'src> WebidlParse<'src, ()> for weedle::Definition<'src> {
weedle::Definition::PartialInterfaceMixin(_) => {
// handled in the first pass
}
weedle::Definition::Implements(..) => {
// nothing to do for this, ignore it
}
// TODO
weedle::Definition::Callback(..)
| weedle::Definition::CallbackInterface(..)
| weedle::Definition::Dictionary(..)
| weedle::Definition::PartialDictionary(..)
| weedle::Definition::Implements(..)
| weedle::Definition::Namespace(..)
| weedle::Definition::PartialNamespace(..) => {
warn!("Unsupported WebIDL definition: {:?}", self)