diff options
author | Melroy van den Berg <melroy@melroy.org> | 2021-03-15 11:27:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-15 11:27:54 +0100 |
commit | c91b293c9df4c014b049ca8cbdf921f02d27537a (patch) | |
tree | 14e0c9e18eaa8b6454644908bf4f39edd389fd03 /src | |
parent | 49c09d493a970ec5619b2085f4d1b8b1b4802227 (diff) |
fix(cmake): Change cmake symbol to unicode triangle (#2456)
Diffstat (limited to 'src')
-rw-r--r-- | src/configs/cmake.rs | 2 | ||||
-rw-r--r-- | src/modules/cmake.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/configs/cmake.rs b/src/configs/cmake.rs index 1fc934f4a..012d8ebda 100644 --- a/src/configs/cmake.rs +++ b/src/configs/cmake.rs @@ -17,7 +17,7 @@ impl<'a> RootModuleConfig<'a> for CMakeConfig<'a> { fn new() -> Self { CMakeConfig { format: "via [$symbol($version )]($style)", - symbol: "喝 ", + symbol: "△ ", style: "bold blue", disabled: false, detect_extensions: vec![], diff --git a/src/modules/cmake.rs b/src/modules/cmake.rs index 2d003a977..01d4010e9 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() } @@ -87,7 +87,7 @@ mod tests { let dir = tempfile::tempdir()?; File::create(dir.path().join("CMakeCache.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() } |