Skip to content

Commit 4033190

Browse files
committed
refactor(cli): Use string interpolation
1 parent 29386b9 commit 4033190

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/bin/cargo/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,9 @@ fn execute_external_subcommand(config: &Config, cmd: &str, args: &[&OsStr]) -> C
180180
None => {
181181
let err = if cmd.starts_with('+') {
182182
anyhow::format_err!(
183-
"no such command: `{}`\n\n\t\
183+
"no such command: `{cmd}`\n\n\t\
184184
Cargo does not handle `+toolchain` directives.\n\t\
185185
Did you mean to invoke `cargo` through `rustup` instead?",
186-
cmd
187186
)
188187
} else {
189188
let suggestions = list_commands(config);

0 commit comments

Comments
 (0)