style: keep new package traversal within rustfmt width

This commit is contained in:
shmuelbiller1
2026-10-09 11:37:28 -04:00
parent a9e3d85b1d
commit f549f6ad4d
+4 -1
View File
@@ -181,7 +181,10 @@ impl<'a> Collector<'a> {
Some(f) if f.family.eq_ignore_ascii_case(&family) && f.embeddable() => {
let data = f.file_data();
let file = f.path().and_then(Path::file_name).map_or_else(
|| format!("{}-{}.{}", f.family, f.style, font_ext(data)).replace(|c: char| !(c.is_alphanumeric() || "-_.".contains(c)), ""),
|| {
format!("{}-{}.{}", f.family, f.style, font_ext(data))
.replace(|c: char| !(c.is_alphanumeric() || "-_.".contains(c)), "")
},
|n| n.to_string_lossy().into_owned(),
);
if self.font_files.insert(file.to_lowercase()) {