We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bde3ea8 commit baa0e53Copy full SHA for baa0e53
src/util.rs
@@ -408,7 +408,11 @@ pub fn resolve_path(path: impl AsRef<Path>) -> Result<PathBuf> {
408
/// Convert a string to lowercase, with a fast path for ASCII strings.
409
pub fn to_lowercase(s: impl AsRef<str>) -> String {
410
let s = s.as_ref();
411
- if s.is_ascii() { s.to_ascii_lowercase() } else { s.to_lowercase() }
+ if s.is_ascii() {
412
+ s.to_ascii_lowercase()
413
+ } else {
414
+ s.to_lowercase()
415
+ }
416
}
417
418
#[cfg(test)]
0 commit comments