mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 21:05:35 +01:00
xtask: cargo_format: grab check_only from struct
This commit is contained in:
parent
28257b001e
commit
dd3d56625e
1 changed files with 5 additions and 5 deletions
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue