mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 21:05:35 +01:00
Fix fmt
This commit is contained in:
parent
feb00a9755
commit
c6f4b834c1
3 changed files with 5 additions and 5 deletions
|
|
@ -306,9 +306,9 @@ pub enum Commands {
|
|||
pub struct FormatOpt {
|
||||
#[clap(flatten)]
|
||||
pub package: PackageOpt,
|
||||
/// Apply formatting fixes immediately.
|
||||
/// Check-only, do not apply formatting fixes.
|
||||
#[clap(short, long)]
|
||||
pub apply: bool,
|
||||
pub check: bool,
|
||||
}
|
||||
|
||||
#[derive(Args, Debug, Clone)]
|
||||
|
|
|
|||
|
|
@ -218,7 +218,7 @@ fn main() -> anyhow::Result<()> {
|
|||
};
|
||||
|
||||
let final_run_results = match &cli.command {
|
||||
Commands::Format(args) => cargo_format(globals, &cargologlevel, &args.package, !args.apply),
|
||||
Commands::Format(args) => cargo_format(globals, &cargologlevel, &args.package, args.check),
|
||||
Commands::Clippy(args) => {
|
||||
info!("Running clippy on backend: {backend:?}");
|
||||
cargo_clippy(globals, &cargologlevel, &args, backend)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue