diff --git a/common/Cargo.toml b/common/Cargo.toml index 4ce39d986af..581405cddd7 100644 --- a/common/Cargo.toml +++ b/common/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "swc_common" -version = "0.5.7" +version = "0.5.8" authors = ["강동윤 "] license = "Apache-2.0/MIT" repository = "https://github.com/swc-project/swc.git" diff --git a/common/src/syntax_pos/hygiene.rs b/common/src/syntax_pos/hygiene.rs index f5ba0bb0ffb..c15015c48ba 100644 --- a/common/src/syntax_pos/hygiene.rs +++ b/common/src/syntax_pos/hygiene.rs @@ -130,13 +130,19 @@ impl Mark { } } -#[derive(Debug, Default)] +#[derive(Debug)] pub(crate) struct HygieneData { marks: Vec, syntax_contexts: Vec, markings: HashMap<(SyntaxContext, Mark), SyntaxContext>, } +impl Default for HygieneData { + fn default() -> Self { + Self::new() + } +} + impl HygieneData { pub(crate) fn new() -> Self { HygieneData {