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 | dd3d56625ea2ea07c0958399d39fea703d30e92b (patch) | |
| tree | b074488e7aa18c08e422a874597ed2812600767e /xtask | |
| parent | 28257b001e66b0b700c3511703612c6408c25b0b (diff) | |
xtask: cargo_format: grab check_only from struct
Diffstat (limited to 'xtask')
| -rw-r--r-- | xtask/src/run.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xtask/src/run.rs b/xtask/src/run.rs index a579e06..a7e3c14 100644 --- a/xtask/src/run.rs +++ b/xtask/src/run.rs @@ -16,7 +16,8 @@ use iter::{into_iter, CoalescingRunner}; use crate::{ argument_parsing::{ - Backends, BuildOrCheck, ExtraArguments, Globals, PackageOpt, Platforms, TestMetadata, + Backends, BuildOrCheck, ExtraArguments, FormatOpt, Globals, PackageOpt, Platforms, + TestMetadata, }, cargo_command::{BuildMode, CargoCommand}, }; @@ -278,16 +279,15 @@ pub fn cargo_clippy<'c>( pub fn cargo_format<'c>( globals: &Globals, cargoarg: &'c Option<&'c str>, - package: &'c PackageOpt, - check_only: bool, + formatopts: &'c FormatOpt, ) -> Vec<FinalRunResult<'c>> { - let runner = package.packages().map(|p| { + let runner = formatopts.package.packages().map(|p| { ( globals, CargoCommand::Format { cargoarg, package: Some(p.name()), - check_only, + check_only: formatopts.check, }, false, ) |
