filesystem: Remove a redundant as_str()

This commit is contained in:
Tavian Barnes 2024-04-28 17:30:44 -04:00
parent 9fc2167cf9
commit 1031325cca
1 changed files with 1 additions and 1 deletions

View File

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