Skip to content

Commit

Permalink
Merge pull request #1541 from tavianator/clippy-is-empty
Browse files Browse the repository at this point in the history
filesystem: Remove a redundant as_str()
  • Loading branch information
tmccombs authored Apr 29, 2024
2 parents 9fc2167 + 1031325 commit 8eb0479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand Down

0 comments on commit 8eb0479

Please sign in to comment.