Skip to content

Commit 75aaa40

Browse files
committed
Remove the unnecessary backticks
1 parent edfbcf0 commit 75aaa40

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/cargo/ops/cargo_package.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,12 +431,12 @@ fn error_custom_build_file_not_in_package(
431431
let tip = {
432432
let description_name = target.description_named();
433433
if path.is_file() {
434-
format!("the source file of `{description_name}` doesn't appear to be a path inside of the package.\n\
434+
format!("the source file of {description_name} doesn't appear to be a path inside of the package.\n\
435435
It is at `{}`, whereas the root the package is `{}`.\n",
436436
path.display(), pkg.root().display()
437437
)
438438
} else {
439-
format!("the source file of `{description_name}` doesn't appear to exist.\n",)
439+
format!("the source file of {description_name} doesn't appear to exist.\n",)
440440
}
441441
};
442442
let msg = format!(

tests/testsuite/package.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3325,7 +3325,7 @@ fn build_script_outside_pkg_root() {
33253325
let mut expect_msg = String::from("\
33263326
warning: manifest has no documentation, homepage or repository.
33273327
See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.
3328-
error: the source file of `build script` doesn't appear to exist.
3328+
error: the source file of build script doesn't appear to exist.
33293329
This may cause issue during packaging, as modules resolution and resources included via macros are often relative to the path of source files.
33303330
Please update the `build` setting in the manifest at `[CWD]/Cargo.toml` and point to a path inside the root of the package.
33313331
");
@@ -3343,7 +3343,7 @@ Please update the `build` setting in the manifest at `[CWD]/Cargo.toml` and poin
33433343
"\
33443344
warning: manifest has no documentation, homepage or repository.
33453345
See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.
3346-
error: the source file of `build script` doesn't appear to be a path inside of the package.
3346+
error: the source file of build script doesn't appear to be a path inside of the package.
33473347
It is at `{}/t_custom_build/custom_build.rs`, whereas the root the package is `[CWD]`.
33483348
This may cause issue during packaging, as modules resolution and resources included via macros are often relative to the path of source files.
33493349
Please update the `build` setting in the manifest at `[CWD]/Cargo.toml` and point to a path inside the root of the package.

0 commit comments

Comments
 (0)