1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-08 15:48:08 +00:00

fixup! feat(core): introduce new drawing library

This commit is contained in:
cepetr 2024-05-03 10:47:52 +02:00
parent 464f146201
commit 8eff76c1c8
2 changed files with 4 additions and 4 deletions

View File

@ -59,9 +59,9 @@ pub struct JpegCacheSlot<'a> {
} }
impl<'a> JpegCacheSlot<'a> { impl<'a> JpegCacheSlot<'a> {
fn new<'alloc: 'a, T>(bump: &'alloc T) -> Option<Self> fn new<T>(bump: &'a T) -> Option<Self>
where where
T: LocalAllocLeakExt<'alloc>, T: LocalAllocLeakExt<'a>,
{ {
let scratchpad = bump let scratchpad = bump
.alloc_t()? .alloc_t()?

View File

@ -19,9 +19,9 @@ struct ZlibCacheSlot<'a> {
} }
impl<'a> ZlibCacheSlot<'a> { impl<'a> ZlibCacheSlot<'a> {
fn new<'alloc: 'a, T>(bump: &'alloc T) -> Option<Self> fn new<T>(bump: &'a T) -> Option<Self>
where where
T: LocalAllocLeakExt<'alloc>, T: LocalAllocLeakExt<'a>,
{ {
let window = bump let window = bump
.alloc_t()? .alloc_t()?