From 8a39399b80f7678482299a2fa9a3fb8a244d0314 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Mon, 9 Nov 2026 08:22:26 +0700 Subject: [PATCH] Format merged import lists --- crates/edit/src/text_regions.rs | 6 +++--- crates/render/src/inspect/annotations.rs | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/edit/src/text_regions.rs b/crates/edit/src/text_regions.rs index 1cba1de24f..ee808a8dec 100644 --- a/crates/edit/src/text_regions.rs +++ b/crates/edit/src/text_regions.rs @@ -3,9 +3,9 @@ use super::{ BlockStyle, CraftFont, Dict, Document, EditError, HashMap, LineEdit, MAX_TYPE3_GLYPHS, Matrix, Metrics, Object, Op, PdfString, Pieces, RangeStyle, TextBlock, TextLine, Type3Glyph, builtin_thai_choice, coincident_ops, content_streams, fallback_face, japanese_glyph_from, - kept_words, needs_type3, no_fallback_font, no_glyph_for, page_dict, paragraph_separator, reveal_ops, rewritten_contents, row_break, same_base_font, - same_font, source_encodes, source_family, source_program, source_show, source_space, source_width, splice, strip_subset_tag, type3_faces, - type3_glyph, union, word_lines, write_type3_glyphs, + kept_words, needs_type3, no_fallback_font, no_glyph_for, page_dict, paragraph_separator, reveal_ops, rewritten_contents, row_break, + same_base_font, same_font, source_encodes, source_family, source_program, source_show, source_space, source_width, splice, strip_subset_tag, + type3_faces, type3_glyph, union, word_lines, write_type3_glyphs, }; #[path = "text_regions/grouping.rs"] diff --git a/crates/render/src/inspect/annotations.rs b/crates/render/src/inspect/annotations.rs index f30df16a24..290675da52 100644 --- a/crates/render/src/inspect/annotations.rs +++ b/crates/render/src/inspect/annotations.rs @@ -406,7 +406,8 @@ impl<'a> Inspector<'a> { Ok(Object::Array(k)) => k.clone(), _ => Vec::new(), }; - let (field_kids, widget_kids): (Vec, Vec) = kids.iter().cloned().partition(|k| self.dict(k).is_some_and(|kd| kd.get(b"T").is_ok())); + let (field_kids, widget_kids): (Vec, Vec) = + kids.iter().cloned().partition(|k| self.dict(k).is_some_and(|kd| kd.get(b"T").is_ok())); let field_kids: Vec<_> = field_kids.iter().filter(|k| !self.not_a_child(walk, o, k)).collect(); if !field_kids.is_empty() { let here = match o {