Skip to content

Commit

Permalink
Workaround needing 1.79 lifetime extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-h-chamberlain committed Jun 15, 2024
1 parent dcf6b69 commit 4525191
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ categories = ["command-line-utilities", "development-tools::cargo-plugins"]
exclude = [".github"]
license = "MIT OR Apache-2.0"
edition = "2021"
rust-version = "1.79"

[dependencies]
cargo_metadata = "0.14.0"
Expand Down
6 changes: 3 additions & 3 deletions src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,13 +318,13 @@ impl CargoCmd {

let config = match self {
// If we produced one executable, we will attempt to run that one
_ if configs.len() == 1 => &configs[0],
_ if configs.len() == 1 => configs.remove(0),

// --no-run can produce any number of executables
Self::Test(Test { no_run: true, .. }) => return,

// Config is ignored by the New callback, using default is fine
Self::New(_) => &CTRConfig::default(),
Self::New(_) => CTRConfig::default(),

// Otherwise, print an error and exit
_ => {
Expand All @@ -338,7 +338,7 @@ impl CargoCmd {
}
};

self.run_callback(config);
self.run_callback(&config);
}

/// Generate a .3dsx for every executable artifact within the workspace that
Expand Down

0 comments on commit 4525191

Please sign in to comment.