Skip to content

Commit 3bc2341

Browse files
committed
change simple quotes with backticks for file names
1 parent 7afd3fd commit 3bc2341

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cargo/ops/cargo_new.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ pub fn init(opts: &NewOptions, config: &Config) -> CargoResult<NewProjectKind> {
478478
NewProjectKind::Lib.to_string()
479479
};
480480
config.shell().warn(format!(
481-
"file '{}' seems to be a {} file",
481+
"file `{}` seems to be a {} file",
482482
src_paths_types[0].relative_path, file_type
483483
))?;
484484
src_paths_types[0].bin = has_bin

tests/testsuite/init.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ fn creates_binary_when_instructed_and_has_lib_file_no_warning() {
608608
.cwd(&path)
609609
.with_stderr(
610610
"\
611-
[WARNING] file 'foo.rs' seems to be a library file
611+
[WARNING] file `foo.rs` seems to be a library file
612612
[CREATED] binary (application) package
613613
",
614614
)
@@ -628,7 +628,7 @@ fn creates_library_when_instructed_and_has_bin_file() {
628628
.cwd(&path)
629629
.with_stderr(
630630
"\
631-
[WARNING] file 'foo.rs' seems to be a binary (application) file
631+
[WARNING] file `foo.rs` seems to be a binary (application) file
632632
[CREATED] library package
633633
",
634634
)

0 commit comments

Comments
 (0)