From 67dbf28f5ab105b52c535d16645f3c067fef57b5 Mon Sep 17 00:00:00 2001 From: Matan Kushner Date: Tue, 13 Oct 2020 18:01:35 -0400 Subject: [PATCH] fix: replace emoji for cmake and erlang (#1787) --- docs/config/README.md | 4 ++-- src/configs/cmake.rs | 2 +- src/configs/erlang.rs | 2 +- src/modules/cmake.rs | 2 +- src/modules/erlang.rs | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/config/README.md b/docs/config/README.md index a2be5361d8269..eb7a174708710 100644 --- a/docs/config/README.md +++ b/docs/config/README.md @@ -452,7 +452,7 @@ The `cmake` module shows the currently installed version of CMake if: | Option | Default | Description | | ---------- | ---------------------------------- | -------------------------------------------- | | `format` | `"via [$symbol$version]($style) "` | The format for the module. | -| `symbol` | `"🛆 "` | The symbol used before the version of cmake. | +| `symbol` | `"喝 "` | The symbol used before the version of cmake. | | `style` | `"bold blue"` | The style for the module. | | `disabled` | `false` | Disables the `cmake` module. | @@ -920,7 +920,7 @@ The module will be shown if any of the following conditions are met: | Option | Default | Description | | ---------- | ---------------------------------- | -------------------------------------------------------- | -| `symbol` | `"🖧 "` | The symbol used before displaying the version of erlang. | +| `symbol` | `" "` | The symbol used before displaying the version of erlang. | | `style` | `"bold red"` | The style for the module. | | `format` | `"via [$symbol$version]($style) "` | The format for the module. | | `disabled` | `false` | Disables the `erlang` module. | diff --git a/src/configs/cmake.rs b/src/configs/cmake.rs index 5045786b236f5..df1ed53b2afcb 100644 --- a/src/configs/cmake.rs +++ b/src/configs/cmake.rs @@ -14,7 +14,7 @@ impl<'a> RootModuleConfig<'a> for CMakeConfig<'a> { fn new() -> Self { CMakeConfig { format: "via [$symbol$version]($style) ", - symbol: "🛆 ", + symbol: "喝 ", style: "bold blue", disabled: false, } diff --git a/src/configs/erlang.rs b/src/configs/erlang.rs index 4fd1b729a0ba6..368368a9e0ee7 100644 --- a/src/configs/erlang.rs +++ b/src/configs/erlang.rs @@ -14,7 +14,7 @@ impl<'a> RootModuleConfig<'a> for ErlangConfig<'a> { fn new() -> Self { ErlangConfig { format: "via [$symbol$version]($style) ", - symbol: "🖧 ", + symbol: " ", style: "bold red", disabled: false, } diff --git a/src/modules/cmake.rs b/src/modules/cmake.rs index ec078ce59bdb0..3e15eb0cf364a 100644 --- a/src/modules/cmake.rs +++ b/src/modules/cmake.rs @@ -77,7 +77,7 @@ mod tests { let dir = tempfile::tempdir()?; File::create(dir.path().join("CMakeLists.txt"))?.sync_all()?; let actual = ModuleRenderer::new("cmake").path(dir.path()).collect(); - let expected = Some(format!("via {} ", Color::Blue.bold().paint("🛆 v3.17.3"))); + let expected = Some(format!("via {} ", Color::Blue.bold().paint("喝 v3.17.3"))); assert_eq!(expected, actual); dir.close() } diff --git a/src/modules/erlang.rs b/src/modules/erlang.rs index 8dc593c3696b6..5b2514c0dea28 100644 --- a/src/modules/erlang.rs +++ b/src/modules/erlang.rs @@ -89,7 +89,7 @@ mod tests { let dir = tempfile::tempdir()?; File::create(dir.path().join("rebar.config"))?.sync_all()?; - let expected = Some(format!("via {} ", Color::Red.bold().paint("🖧 22.1.3"))); + let expected = Some(format!("via {} ", Color::Red.bold().paint(" 22.1.3"))); let output = ModuleRenderer::new("erlang").path(dir.path()).collect(); assert_eq!(output, expected);