Skip to content

Commit d477fc0

Browse files
Add #[serde(default)] to wit-bindgen-rust::Opts (#1270)
1 parent 10c1096 commit d477fc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rust/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ fn parse_async(s: &str) -> Result<AsyncConfig, String> {
194194
#[cfg_attr(
195195
feature = "serde",
196196
derive(serde::Deserialize),
197-
serde(rename_all = "kebab-case")
197+
serde(default, rename_all = "kebab-case")
198198
)]
199199
pub struct Opts {
200200
/// Whether or not a formatter is executed to format generated code.

0 commit comments

Comments
 (0)