mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-02 14:38:13 -06:00
Format type3 helpers with rustfmt so the CI fmt check passes
This commit is contained in:
@@ -368,7 +368,12 @@ pub(crate) fn prune_type3_from_resources(doc: &Document, res: &mut Dict, content
|
||||
{
|
||||
let extg = res_dict(doc, res, b"ExtGState");
|
||||
if let Some(font_obj) = extg.get(name).and_then(|state_obj| gs_font_object(doc, state_obj)) {
|
||||
drawn_font_names.extend(fonts.iter().filter(|(_, fn_obj)| fn_obj.as_ref().is_some() && fn_obj.as_ref() == font_obj.as_ref()).map(|(fn_name, _)| fn_name.to_vec()));
|
||||
drawn_font_names.extend(
|
||||
fonts
|
||||
.iter()
|
||||
.filter(|(_, fn_obj)| fn_obj.as_ref().is_some() && fn_obj.as_ref() == font_obj.as_ref())
|
||||
.map(|(fn_name, _)| fn_name.to_vec()),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user