1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-08 22:40:59 +00:00

fix(core): fix slow jpeg decoding

[no changelog]
This commit is contained in:
cepetr 2024-09-25 11:08:34 +02:00 committed by cepetr
parent e13d4a45a6
commit 454b8140ec

View File

@ -166,6 +166,10 @@ impl<'a> PartialEq for BinaryData<'a> {
#[cfg(feature = "micropython")]
(Self::Object(a), Self::Object(b)) => a == b,
#[cfg(feature = "micropython")]
(Self::AllocatedSlice(a), Self::AllocatedSlice(b)) => {
a.as_ptr() == b.as_ptr() && a.len() == b.len()
}
#[cfg(feature = "micropython")]
_ => false,
}
}