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:
parent
e13d4a45a6
commit
454b8140ec
@ -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,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user