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()); } }