Fix extra-traits feature (#491)

This commit is contained in:
Richard Dodd (dodj) 2018-07-17 16:28:44 +01:00 committed by Alex Crichton
parent 6753285899
commit 9d27b44a4a

View File

@ -2,7 +2,7 @@ use proc_macro2::{Ident, Span};
use shared; use shared;
use syn; use syn;
#[cfg_attr(feature = "extra-traits", derive(Debug, PartialEq, Eq))] #[cfg_attr(feature = "extra-traits", derive(Debug, PartialEq))]
#[derive(Default)] #[derive(Default)]
pub struct Program { pub struct Program {
pub exports: Vec<Export>, pub exports: Vec<Export>,
@ -175,7 +175,7 @@ pub struct TypeAlias {
pub src: syn::Type, pub src: syn::Type,
} }
#[cfg_attr(feature = "extra-traits", derive(Debug, PartialEq, Eq))] #[cfg_attr(feature = "extra-traits", derive(Debug, PartialEq))]
pub struct Const { pub struct Const {
pub vis: syn::Visibility, pub vis: syn::Visibility,
pub name: Ident, pub name: Ident,
@ -184,7 +184,7 @@ pub struct Const {
pub value: ConstValue, pub value: ConstValue,
} }
#[cfg_attr(feature = "extra-traits", derive(Debug, PartialEq, Eq))] #[cfg_attr(feature = "extra-traits", derive(Debug, PartialEq))]
/// same as webidl::ast::ConstValue /// same as webidl::ast::ConstValue
pub enum ConstValue { pub enum ConstValue {
BooleanLiteral(bool), BooleanLiteral(bool),