Skip to content

Commit

Permalink
Add a missing format! (#349)
Browse files Browse the repository at this point in the history
thank you
  • Loading branch information
primoly authored Nov 10, 2024
1 parent 4d153c4 commit bcbc80f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,9 +545,9 @@ fn spawn_outputs(
.collect::<Vec<_>>();

if matches!(command, CargoCommand::Run | CargoCommand::Serve) && executables.len() > 1 {
config.terminal().error(
config.terminal().error(format!(
"`cargo component {command}` can run at most one component, but multiple were specified",
)
))
} else if executables.is_empty() {
config.terminal().error(format!(
"a component {ty} target must be available for `cargo component {command}`",
Expand Down

0 comments on commit bcbc80f

Please sign in to comment.