fix: compress pdf embeds when the type is unknown

This commit is contained in:
Tobias Schmitz 2025-05-08 15:36:31 +02:00
parent ce6975e65a
commit c8dfb7b9ec
No known key found for this signature in database

View File

@ -56,7 +56,7 @@ pub(crate) fn embed_files(
fn should_compress(data: &[u8]) -> bool {
let Some(ty) = infer::get(data) else {
return false;
return true;
};
match ty.matcher_type() {
infer::MatcherType::App => true,