Skip to content

Commit

Permalink
fix(core): fix slow jpeg decoding
Browse files Browse the repository at this point in the history
[no changelog]
  • Loading branch information
cepetr committed Sep 25, 2024
1 parent e13d4a4 commit 454b814
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/embed/rust/src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
Expand Down

0 comments on commit 454b814

Please sign in to comment.