From 89fefb4d1a3239496e90daf74be8b08decc603d2 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sat, 23 Dec 2023 06:35:23 +0800 Subject: refactor: remove path existence indicator from info (#282) --- src/config/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/config/mod.rs') 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 { - 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()); -- cgit v1.2.3