From d900e53b181ed8510d70383ed479be71ae248c8c Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Fri, 19 Apr 2024 15:03:00 +0800 Subject: [PATCH] Revert "change default config" This reverts commit 27d93ced09dd7f43e47372ffcbc0bddb38642dee. --- markup_fmt/src/config.rs | 44 +--------------------------------------- 1 file changed, 1 insertion(+), 43 deletions(-) diff --git a/markup_fmt/src/config.rs b/markup_fmt/src/config.rs index d21355b..c5eb113 100644 --- a/markup_fmt/src/config.rs +++ b/markup_fmt/src/config.rs @@ -71,7 +71,7 @@ impl From for tiny_pretty::LineBreak { } } -#[derive(Clone, Debug)] +#[derive(Clone, Debug, Default)] #[cfg_attr(feature = "config_serde", derive(Serialize, Deserialize))] #[cfg_attr(feature = "config_serde", serde(default))] /// Configuration related to syntax. @@ -248,48 +248,6 @@ pub struct LanguageOptions { pub astro_attr_shorthand: Option, } -impl Default for LanguageOptions { - fn default() -> Self { - Self { - quotes: Quotes::default(), - format_comments: false, - script_indent: true, - html_script_indent: None, - vue_script_indent: Some(false), - svelte_script_indent: None, - astro_script_indent: None, - style_indent: true, - html_style_indent: None, - vue_style_indent: Some(false), - svelte_style_indent: None, - astro_style_indent: None, - closing_bracket_same_line: false, - closing_tag_line_break_for_empty: ClosingTagLineBreakForEmpty::default(), - max_attrs_per_line: None, - prefer_attrs_single_line: false, - html_normal_self_closing: None, - html_void_self_closing: Some(false), - component_self_closing: None, - svg_self_closing: None, - mathml_self_closing: None, - whitespace_sensitivity: WhitespaceSensitivity::default(), - component_whitespace_sensitivity: None, - v_bind_style: None, - v_on_style: None, - v_for_delimiter_style: None, - v_slot_style: None, - component_v_slot_style: None, - default_v_slot_style: None, - named_v_slot_style: None, - v_bind_same_name_short_hand: None, - strict_svelte_attr: false, - svelte_attr_shorthand: None, - svelte_directive_shorthand: None, - astro_attr_shorthand: None, - } - } -} - #[derive(Clone, Debug, Default)] #[cfg_attr(feature = "config_serde", derive(Serialize, Deserialize))] #[cfg_attr(feature = "config_serde", serde(rename_all = "kebab-case"))]