Skip to content

Commit c6c6792

Browse files
authored
Deny unknown fields in wasm-smith configuration (#1824)
This helps catch typos in configuration such as using `foo_bar` instead of `foo-bar`.
1 parent 852ee35 commit c6c6792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/wasm-smith/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ macro_rules! define_config {
116116
#[cfg(feature = "_internal_cli")]
117117
#[doc(hidden)]
118118
#[derive(Clone, Debug, Default, clap::Parser, serde_derive::Deserialize)]
119-
#[serde(rename_all = "kebab-case")]
119+
#[serde(rename_all = "kebab-case", deny_unknown_fields)]
120120
pub struct InternalOptionalConfig {
121121
/// The imports that may be used when generating the module.
122122
///

0 commit comments

Comments
 (0)