Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Mar 27, 2023
1 parent 316c9ef commit 1cca20c
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions crates/swc_ecma_minifier/src/option/mod.rs
@@ -1,3 +1,5 @@
#![cfg_attr(not(feature = "extra-serde"), allow(unused))]

use serde::{Deserialize, Serialize};
use swc_atoms::JsWord;
use swc_cached::regex::CachedRegex;
Expand Down Expand Up @@ -28,7 +30,7 @@ pub struct ExtraOptions {
pub top_level_mark: Mark,
}

#[derive(Debug, Clone)]
#[derive(Debug, Default, Clone)]
#[cfg_attr(feature = "extra-serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "extra-serde", serde(rename_all = "camelCase"))]
#[cfg_attr(feature = "extra-serde", serde(deny_unknown_fields))]
Expand All @@ -45,18 +47,6 @@ pub struct MinifyOptions {
pub enclose: bool,
}

impl Default for MinifyOptions {
fn default() -> Self {
Self {
rename: Default::default(),
compress: Default::default(),
mangle: Default::default(),
wrap: Default::default(),
enclose: Default::default(),
}
}
}

#[derive(Debug, Clone, Copy, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
#[serde(deny_unknown_fields)]
Expand Down

0 comments on commit 1cca20c

Please sign in to comment.