Skip to content

Commit e2aecd9

Browse files
committed
[src/bin/main.rs] Remove Option on additional_derives
1 parent fc936a7 commit e2aecd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ pub struct MainOptions {
139139

140140
/// Add these additional derives to each generated `struct`
141141
#[arg(short = 'd', long = "derive")]
142-
pub additional_derives: Option<Vec<String>>,
142+
pub additional_derives: Vec<String>,
143143
}
144144

145145
#[derive(Debug, ValueEnum, Clone, PartialEq, Default)]
@@ -269,7 +269,7 @@ fn actual_main() -> dsync::Result<()> {
269269
once_connection_type: args.once_connection_type,
270270
readonly_prefixes: args.readonly_prefixes,
271271
readonly_suffixes: args.readonly_suffixes,
272-
additional_derives: args.additional_derives.unwrap_or(Default::default()),
272+
additional_derives: args.additional_derives,
273273
},
274274
},
275275
)?;

0 commit comments

Comments
 (0)