mirror of
https://github.com/sharkdp/fd
synced 2024-09-30 04:55:28 +00:00
Merge pull request #1541 from tavianator/clippy-is-empty
filesystem: Remove a redundant as_str()
This commit is contained in:
commit
8eb047945e
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue