about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCasey Rodarmor <casey@rodarmor.com>2021-05-09 20:01:24 -0700
committerCaleb Cartwright <calebcartwright@users.noreply.github.com>2021-07-25 22:53:32 -0500
commit1ca3798d2c961c43b02e312e8aa0e4bfa3f1b37e (patch)
treef1abaea03b56a97b2cfad4ea46773acc6e62b8cb
parent75765f656ebae28dbbc6f93d36a1e851473aeec9 (diff)
downloadrust-1ca3798d2c961c43b02e312e8aa0e4bfa3f1b37e.tar.gz
rust-1ca3798d2c961c43b02e312e8aa0e4bfa3f1b37e.zip
Improve pasta copyability of `merge_imports` deprecation message
Add double quotes around `Crate` so that it can be copied directly into a `Cargo.toml` file
-rw-r--r--src/config/config_type.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/config_type.rs b/src/config/config_type.rs
index 2f567b25521..7fc4486ddcd 100644
--- a/src/config/config_type.rs
+++ b/src/config/config_type.rs
@@ -409,7 +409,7 @@ macro_rules! create_config {
                 if self.was_set().merge_imports() {
                     eprintln!(
                         "Warning: the `merge_imports` option is deprecated. \
-                        Use `imports_granularity=Crate` instead"
+                        Use `imports_granularity=\"Crate\"` instead"
                     );
                     if !self.was_set().imports_granularity() {
                         self.imports_granularity.2 = if self.merge_imports() {