Skip to content

Commit 4234077

Browse files
author
Nick Flueckiger
committed
Re-add backticks
1 parent d3aed35 commit 4234077

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cargo/util/config/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ impl Config {
575575
if let Some(env_key) = self.upper_case_env.get(key.as_env_key()) {
576576
let _ = self.shell().warn(format!(
577577
"Environment variables are expected to use uppercase letters and underscores, \
578-
the variable {} will be ignored and have no effect",
578+
the variable `{}` will be ignored and have no effect",
579579
env_key
580580
));
581581
}

tests/testsuite/tool_paths.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ fn target_in_environment_contains_lower_case() {
369369
.with_status(101)
370370
.with_stderr_contains(format!(
371371
"warning: Environment variables are expected to use uppercase letters and underscores, \
372-
the variable {} will be ignored and have no effect",
372+
the variable `{}` will be ignored and have no effect",
373373
target_key
374374
))
375375
.run();
@@ -392,7 +392,7 @@ fn target_in_environment_contains_lower_case_on_windows() {
392392
.with_status(101)
393393
.with_stderr_does_not_contain(format!(
394394
"warning: Environment variables are expected to use uppercase letters and underscores, \
395-
the variable {} will be ignored and have no effect",
395+
the variable `{}` will be ignored and have no effect",
396396
target_key
397397
))
398398
.run();

0 commit comments

Comments
 (0)