diff options
| author | sigoden <sigoden@gmail.com> | 2023-12-23 06:35:23 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-23 06:35:23 +0800 |
| commit | 89fefb4d1a3239496e90daf74be8b08decc603d2 (patch) | |
| tree | 02201f73b8667514e5490a4b9dda603b00e87588 /src | |
| parent | 5b001af50d192239a7a3df5f01b958adc0ca85d9 (diff) | |
| download | aichat-89fefb4d1a3239496e90daf74be8b08decc603d2.tar.gz | |
refactor: remove path existence indicator from info (#282)
Diffstat (limited to 'src')
| -rw-r--r-- | src/config/mod.rs | 5 |
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()); |
