Skip to content

Commit

Permalink
simplify options deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane committed Feb 2, 2024
1 parent e692a58 commit 9bb973d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions visitor/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,11 @@ use std::{fmt, ops::Deref};
#[serde(rename_all = "camelCase", default)]
pub struct Options {
pub transform_on: bool,

pub optimize: bool,

pub custom_element_patterns: Vec<Regex>,

#[serde(default = "default_true")]
pub merge_props: bool,

#[serde(default = "default_true")]
pub enable_object_slots: bool,

pub pragma: Option<String>,

pub resolve_type: bool,
}

Expand All @@ -38,10 +30,6 @@ impl Default for Options {
}
}

fn default_true() -> bool {
true
}

#[derive(Clone, Debug)]
pub struct Regex(regex::Regex);

Expand Down

0 comments on commit 9bb973d

Please sign in to comment.