Skip to content

Commit

Permalink
Fix rustfmt warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mataha committed Jun 11, 2023
1 parent bde3ea8 commit baa0e53
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,11 @@ pub fn resolve_path(path: impl AsRef<Path>) -> Result<PathBuf> {
/// Convert a string to lowercase, with a fast path for ASCII strings.
pub fn to_lowercase(s: impl AsRef<str>) -> String {
let s = s.as_ref();
if s.is_ascii() { s.to_ascii_lowercase() } else { s.to_lowercase() }
if s.is_ascii() {
s.to_ascii_lowercase()
} else {
s.to_lowercase()
}
}

#[cfg(test)]
Expand Down

0 comments on commit baa0e53

Please sign in to comment.