Skip to content

Commit 0af52b6

Browse files
committed
fix(sss_code): default empty Vec for indent-chars + hidden-chars
1 parent d64dc28 commit 0af52b6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

crates/sss_code/src/config.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,11 @@ pub struct CodeConfig {
133133
pub tab_width: Option<u8>,
134134
#[clap(long, short = 'i', help = "Indent characters (separated by comma)", num_args = 0.., value_delimiter = ',')]
135135
#[merge(strategy = append)]
136+
#[serde(default)]
136137
pub indent_chars: Vec<char>,
137138
#[clap(long, help = "Show Hidden Characters", num_args = 0.., value_delimiter = ',', value_parser = parse_hidden_character_type)]
138139
#[merge(strategy = append)]
140+
#[serde(default)]
139141
pub hidden_chars: Vec<(HiddenCharType, char)>,
140142
}
141143

0 commit comments

Comments
 (0)