diff options
| author | Henrik Tjäder <henrik@tjaders.com> | 2025-06-08 13:46:46 +0200 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2025-06-15 08:11:11 +0000 |
| commit | 28257b001e66b0b700c3511703612c6408c25b0b (patch) | |
| tree | efee521c8f63f8684bcdc2e359e8bda5b0896b50 /xtask/src/argument_parsing.rs | |
| parent | 20d31ede5a78643980f0ccd308e082939506959b (diff) | |
xtask: Add defaults for PackageOpt and FormatOpt
Diffstat (limited to 'xtask/src/argument_parsing.rs')
| -rw-r--r-- | xtask/src/argument_parsing.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/argument_parsing.rs b/xtask/src/argument_parsing.rs index 2657c64..04f2f28 100644 --- a/xtask/src/argument_parsing.rs +++ b/xtask/src/argument_parsing.rs @@ -495,7 +495,7 @@ pub enum Commands { Book(Arg), } -#[derive(Args, Debug, Clone)] +#[derive(Args, Debug, Clone, Default)] pub struct FormatOpt { #[clap(flatten)] pub package: PackageOpt, @@ -504,7 +504,7 @@ pub struct FormatOpt { pub check: bool, } -#[derive(Args, Debug, Clone)] +#[derive(Args, Debug, Clone, Default)] /// Restrict to package, or run on whole workspace pub struct PackageOpt { /// For which package/workspace member to operate |
