diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-04-28 17:30:44 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-04-28 17:30:44 -0400 |
commit | 1031325ccab374f400be1ae232947959048a25e7 (patch) | |
tree | 816f2a6a8558e40f1823081d80880b6c26ff2af7 | |
parent | 9fc2167cf9d390c3b3f898ccdf160c31cc9151be (diff) |
filesystem: Remove a redundant as_str()
-rw-r--r-- | src/filesystem.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<String> { if cfg!(windows) { let msystem = env::var("MSYSTEM").ok()?; - if !msystem.as_str().is_empty() { + if !msystem.is_empty() { return Some("/".to_owned()); } } |