1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-08-01 19:38:33 +00:00

fixup! feat(core): introduce stream-like image decoding

This commit is contained in:
cepetr 2024-05-13 11:27:22 +02:00
parent 3b1b44aff0
commit d0802ce566

View File

@ -158,6 +158,7 @@ impl<'a> PartialEq for BinaryData<'a> {
fn eq(&self, other: &Self) -> bool { fn eq(&self, other: &Self) -> bool {
match (self, other) { match (self, other) {
(Self::Slice(a), Self::Slice(b)) => a.as_ptr() == b.as_ptr() && a.len() == b.len(), (Self::Slice(a), Self::Slice(b)) => a.as_ptr() == b.as_ptr() && a.len() == b.len(),
#[cfg(feature = "micropython")]
(Self::Object(a), Self::Object(b)) => a == b, (Self::Object(a), Self::Object(b)) => a == b,
_ => false, _ => false,
} }