Skip to content

Commit d4c8dd4

Browse files
committed
fix: don't err if auto_render_languages isn't set
1 parent 5507ea4 commit d4c8dd4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/config.rs

+6
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ pub struct OptionsConfig {
136136
pub strict_front_matter_parsing: Option<bool>,
137137

138138
/// Assume snippets for these languages contain `+render` and render them automatically.
139+
#[serde(default)]
139140
pub auto_render_languages: Vec<SnippetLanguage>,
140141
}
141142

@@ -510,4 +511,9 @@ mod test {
510511
let config = KeyBindingsConfig::default();
511512
CommandKeyBindings::try_from(config).expect("construction failed");
512513
}
514+
515+
#[test]
516+
fn default_options_serde() {
517+
serde_yaml::from_str::<'_, OptionsConfig>("implicit_slide_ends: true").expect("failed to parse");
518+
}
513519
}

0 commit comments

Comments
 (0)