mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-25 21:19:35 +01:00
Fix fmt
This commit is contained in:
parent
feb00a9755
commit
c6f4b834c1
3 changed files with 5 additions and 5 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -31,8 +31,8 @@ jobs:
|
|||
- name: Cache Dependencies
|
||||
uses: Swatinem/rust-cache@v2
|
||||
|
||||
- name: cargo xtask format-check
|
||||
run: cargo xtask --verbose format-check
|
||||
- name: cargo xtask fmt
|
||||
run: cargo xtask --verbose fmt -c
|
||||
|
||||
# Compilation check
|
||||
check:
|
||||
|
|
|
@ -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…
Reference in a new issue