summaryrefslogtreecommitdiffstats
path: root/src/config/mod.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-12-23 06:35:23 +0800
committerGitHub <noreply@github.com>2023-12-23 06:35:23 +0800
commit89fefb4d1a3239496e90daf74be8b08decc603d2 (patch)
tree02201f73b8667514e5490a4b9dda603b00e87588 /src/config/mod.rs
parent5b001af50d192239a7a3df5f01b958adc0ca85d9 (diff)
downloadaichat-89fefb4d1a3239496e90daf74be8b08decc603d2.tar.gz
refactor: remove path existence indicator from info (#282)
Diffstat (limited to 'src/config/mod.rs')
-rw-r--r--src/config/mod.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs
index 3ea62b9..52203ba 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -365,10 +365,7 @@ impl Config {
}
pub fn sys_info(&self) -> Result<String> {
- let display_path = |path: &Path| {
- let state = if path.exists() { "" } else { " ⚠️" };
- format!("{}{state}", path.display())
- };
+ let display_path = |path: &Path| path.display().to_string();
let temperature = self
.temperature
.map_or_else(|| String::from("-"), |v| v.to_string());