PDF: remove an unused JPX macro import

This commit is contained in:
dotCooCoo committed 2026-11-03 09:03:01 -08:00
1 parent 6865897f14
commit a017817164
3 files changed
+4 -2

No files matched your search

+3
View File
@@ -235,6 +235,9 @@ precision of the indices; an image without a palette keeps its own. Tests:
PdfCraft's raster test `a_jp2_palette_keeps_its_colours_whatever_the_index_precision` is not
ported: the unit tests show the same behavior.
The JPX reader drops an unused `alloc::vec` import; its test macros already use
`alloc::vec!`. The local source hash records this build-only cleanup.
From [PdfCraft revision 0b670caf4a090e9d83a7f41a84b4cb2144a2d33e](https://github.com/storytold/pdfcraft/tree/0b670caf4a090e9d83a7f41a84b4cb2144a2d33e/vendor),
unledgered and marked `PdfCraft patch` in the source: hayro-syntax #3438 (issue #3107), with
its look-ahead bound from 01af6cba3. An inline image without a filter ends at the byte
+1 -1
View File
@@ -164,7 +164,7 @@
"path": "src/filter/jpx.rs",
"source_sha256": "c9f068629c9cbe79af6793c3c125df4631ca1455691cb1335b44ff43cb1b4056",
"source_git_blob": "74efd8b31e2b2935ff2bbceda2c1ffd36ea9c20d",
"sha256": "dc3742454cfde9a994ce48984e8fcb7b18851efb36ce2d62e31629efea063a1b"
"sha256": "81213936de6d1c6b63bea041a1f88a71753e3b4238a08d9bbc7dbdfaca0970a0"
},
{
"path": "src/filter/lzw_flate.rs",
-1
View File
@@ -2,7 +2,6 @@ use crate::bit_reader::{BitWriter, bit_mask};
use crate::filter::FilterResult;
use crate::object::stream::{ImageColorSpace, ImageData, ImageDecodeParams};
use alloc::borrow::Cow;
use alloc::vec;
use alloc::vec::Vec;
use hayro_jpeg2000::{ColorSpace, DecodeSettings};