mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-28 04:22:38 +03:00
Fix extra-traits feature (#491)
This commit is contained in:
parent
6753285899
commit
9d27b44a4a
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user