PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust
chore(cos): allow the boxed dictionary key index under clippy
aiongg3a11f39ef0ef
diff --git a/crates/cos/src/object.rs b/crates/cos/src/object.rsindex 6b6a4befe..ee3c49a78 100644--- a/crates/cos/src/object.rs+++ b/crates/cos/src/object.rs@@ -92,6 +92,8 @@ const INDEX_FROM: usize = 32;pub struct Dict {entries: Vec<(Name, Object)>,/// Key to position in `entries`, kept once the dictionary reaches [`INDEX_FROM`] entries.+ /// Boxed so that every `Dict`, and so every `Object`, grows by one pointer, not by a map.+ #[allow(clippy::box_collection)]index: Option<Box<std::collections::HashMap<Name, usize>>>,}