Skip to content

Commit

Permalink
Fix the "extra-traits" feature of macro-support, allowing it to build…
Browse files Browse the repository at this point in the history
… again (#2674)
  • Loading branch information
Jules-Bertholet authored Sep 8, 2021
1 parent d6d056c commit 634f07d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/macro-support/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct AttributeParseState {
}

/// Parsed attributes from a `#[wasm_bindgen(..)]`.
#[cfg_attr(feature = "extra-traits", derive(Debug, PartialEq, Eq))]
#[cfg_attr(feature = "extra-traits", derive(Debug))]
pub struct BindgenAttrs {
/// List of parsed attributes
pub attrs: Vec<(Cell<bool>, BindgenAttr)>,
Expand Down Expand Up @@ -229,7 +229,7 @@ impl Parse for BindgenAttrs {
macro_rules! gen_bindgen_attr {
($(($method:ident, $($variants:tt)*),)*) => {
/// The possible attributes in the `#[wasm_bindgen]`.
#[cfg_attr(feature = "extra-traits", derive(Debug, PartialEq, Eq))]
#[cfg_attr(feature = "extra-traits", derive(Debug))]
pub enum BindgenAttr {
$($($variants)*,)*
}
Expand Down

0 comments on commit 634f07d

Please sign in to comment.