Skip to content
Myr

Merge pull request #1541 from tavianator/clippy-is-empty

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Thayne McCombs · committed by GitHub · parents 9fc2167, 1031325 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • filesystem: Remove a redundant as_str()

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/filesystem.rs+1 added-1 removed
126 unmodified lines
127/// platform.128pub fn default_path_separator() -> Option<String> {129 if cfg!(windows) {130 let msystem = env::var("MSYSTEM").ok()?;131 if !msystem.as_str().is_empty() {131 if !msystem.is_empty() {132 return Some("/".to_owned());133 }134 }135 None
21 unmodified lines