style(labrinth): clippy

This commit is contained in:
sychic
2026-07-30 21:06:28 -04:00
parent a8126ecd3a
commit 1587759b68
+1 -1
View File
@@ -269,7 +269,7 @@ fn find_file<'a>(
None,
|_, x| if x.primary { Err(x) } else { Ok(Some(x)) },
)
.map_or_else(|found| Some(found), |last| last);
.unwrap_or_else(Some);
} else if file_name.len() > formatted_name.len()
&& file_name.as_bytes()[..formatted_name.len()]
.eq_ignore_ascii_case(formatted_name.as_bytes())