Skip to content

Commit

Permalink
Deny unknown fields in wasm-smith configuration (bytecodealliance#1824)
Browse files Browse the repository at this point in the history
This helps catch typos in configuration such as using `foo_bar` instead
of `foo-bar`.
  • Loading branch information
alexcrichton authored Sep 25, 2024
1 parent 852ee35 commit c6c6792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/wasm-smith/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ macro_rules! define_config {
#[cfg(feature = "_internal_cli")]
#[doc(hidden)]
#[derive(Clone, Debug, Default, clap::Parser, serde_derive::Deserialize)]
#[serde(rename_all = "kebab-case")]
#[serde(rename_all = "kebab-case", deny_unknown_fields)]
pub struct InternalOptionalConfig {
/// The imports that may be used when generating the module.
///
Expand Down

0 comments on commit c6c6792

Please sign in to comment.