xtask: Add defaults for PackageOpt and FormatOpt

This commit is contained in:
Henrik Tjäder 2025-06-08 13:46:46 +02:00 committed by Emil Fresk
parent 20d31ede5a
commit 28257b001e

View file

@ -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