Skip to content

Commit

Permalink
Bump cargo-subcommand from 0.11.0 to 0.12.0 (#1101)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Mar 4, 2024
1 parent 2f8a685 commit 42de4a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cargo-npk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ rust-version.workspace = true
[dependencies]
anyhow = "1.0.80"
atty = "0.2.14"
cargo-subcommand = { version = "0.11.0", features = ["clap"] }
cargo-subcommand = { version = "0.12.0", features = ["clap"] }
cargo_metadata = "0.15.3"
clap = { version = "4.2.7", features = ["derive"] }
human_bytes = "0.4.3"
Expand Down
4 changes: 2 additions & 2 deletions cargo-npk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ fn pack(

let target = cmd.target().unwrap_or_else(|| cmd.host_triple());

if cmd.artifacts().len() > 1 {
if cmd.artifacts().count() > 1 {
bail!("crates with multiple artifacts are unsupported");
}

Expand Down Expand Up @@ -237,7 +237,7 @@ fn build(subcommand: &Subcommand, target: &str, use_cross: bool) -> Result<PathB
bail!("failed to run cargo");
}

let artifact = subcommand.artifacts().first().expect("missing artifact");
let artifact = subcommand.artifacts().next().expect("missing artifact");
let executable = subcommand.artifact(
artifact,
if subcommand.target() == Some(subcommand.host_triple()) {
Expand Down

0 comments on commit 42de4a4

Please sign in to comment.