From 1031325ccab374f400be1ae232947959048a25e7 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 28 Apr 2024 17:30:44 -0400 Subject: filesystem: Remove a redundant as_str() --- src/filesystem.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filesystem.rs b/src/filesystem.rs index 83e55c9..2a642ed 100644 --- a/src/filesystem.rs +++ b/src/filesystem.rs @@ -128,7 +128,7 @@ pub fn strip_current_dir(path: &Path) -> &Path { pub fn default_path_separator() -> Option { if cfg!(windows) { let msystem = env::var("MSYSTEM").ok()?; - if !msystem.as_str().is_empty() { + if !msystem.is_empty() { return Some("/".to_owned()); } } -- cgit v1.2.3