Skip to content

Commit

Permalink
Merge branch 'master' into softnpu-bump
Browse files Browse the repository at this point in the history
  • Loading branch information
rcgoodfellow committed Dec 5, 2023
2 parents c45098e + 26806e8 commit 9786ad1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[alias]
xtask = "run --package xtask --"
xtask = "run --package xtask --quiet --"

[env]
# Currently required by Falcon due to
Expand Down
7 changes: 5 additions & 2 deletions xtask/src/task_clippy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ pub(crate) fn cmd_clippy(strict: bool, quiet: bool) -> Result<()> {

let run_clippy = |args: &[&str]| -> Result<bool> {
let mut cmd = Command::new("cargo");
cmd.arg("clippy").arg("--no-deps").args(args).current_dir(&wroot);
cmd.arg("clippy").args(args).current_dir(&wroot);

if quiet {
cmd.arg("--quiet");
}

// no-deps and subsequent options must follow `--`
cmd.args(["--", "--no-deps"]);
if strict {
cmd.args(["--", "-Dwarnings"]);
cmd.arg("-Dwarnings");
}

let status = cmd.spawn()?.wait()?;
Expand Down

0 comments on commit 9786ad1

Please sign in to comment.