diff options
-rw-r--r-- | src/ui/tab_list_builder.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ui/tab_list_builder.rs b/src/ui/tab_list_builder.rs index d32684f..87352d7 100644 --- a/src/ui/tab_list_builder.rs +++ b/src/ui/tab_list_builder.rs @@ -35,10 +35,7 @@ pub struct TabLabel { impl TabLabel { fn from_path(path: &Path) -> TabLabel { - let mut full_path_str = path.as_os_str() - .to_str() - .unwrap_or_default() - .to_string(); + let mut full_path_str = path.as_os_str().to_str().unwrap_or_default().to_string(); if let Some(home_dir) = HOME_DIR.as_ref() { let home_dir_str = home_dir.to_string_lossy().into_owned(); if full_path_str.starts_with(&home_dir_str) { |