diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-01-25 15:06:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-25 15:06:00 -0500 |
commit | b5b4887c4a5fefdeb5592ebaadcc941281d0c4d5 (patch) | |
tree | 081ba2ca6a8137b05c3b68a2015f91d5bdb0796a /cli/args/config_file.rs | |
parent | 83642976bf267c81f36742793a5a4a9250f54591 (diff) |
feat(fmt): make semi-colon option a boolean (#17527)
Diffstat (limited to 'cli/args/config_file.rs')
-rw-r--r-- | cli/args/config_file.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/cli/args/config_file.rs b/cli/args/config_file.rs index 106a15ddf..c31f09960 100644 --- a/cli/args/config_file.rs +++ b/cli/args/config_file.rs @@ -373,13 +373,6 @@ pub enum ProseWrap { Preserve, } -#[derive(Clone, Copy, Debug, Serialize, Deserialize)] -#[serde(deny_unknown_fields, rename_all = "camelCase")] -pub enum SemiColons { - Prefer, - Asi, -} - #[derive(Clone, Debug, Default, Serialize, Deserialize)] #[serde(default, deny_unknown_fields, rename_all = "camelCase")] pub struct FmtOptionsConfig { @@ -388,7 +381,7 @@ pub struct FmtOptionsConfig { pub indent_width: Option<u8>, pub single_quote: Option<bool>, pub prose_wrap: Option<ProseWrap>, - pub semi_colons: Option<SemiColons>, + pub semi_colons: Option<bool>, } #[derive(Clone, Debug, Default, Deserialize)] |