From 8eff76c1c84d7ea95ab9fb5ae6fbd884192f83f7 Mon Sep 17 00:00:00 2001 From: cepetr Date: Fri, 3 May 2024 10:47:52 +0200 Subject: [PATCH] fixup! feat(core): introduce new drawing library --- core/embed/rust/src/ui/shape/cache/jpeg_cache.rs | 4 ++-- core/embed/rust/src/ui/shape/cache/zlib_cache.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/embed/rust/src/ui/shape/cache/jpeg_cache.rs b/core/embed/rust/src/ui/shape/cache/jpeg_cache.rs index 4fe0544f8a..f6fad043c5 100644 --- a/core/embed/rust/src/ui/shape/cache/jpeg_cache.rs +++ b/core/embed/rust/src/ui/shape/cache/jpeg_cache.rs @@ -59,9 +59,9 @@ pub struct JpegCacheSlot<'a> { } impl<'a> JpegCacheSlot<'a> { - fn new<'alloc: 'a, T>(bump: &'alloc T) -> Option + fn new(bump: &'a T) -> Option where - T: LocalAllocLeakExt<'alloc>, + T: LocalAllocLeakExt<'a>, { let scratchpad = bump .alloc_t()? diff --git a/core/embed/rust/src/ui/shape/cache/zlib_cache.rs b/core/embed/rust/src/ui/shape/cache/zlib_cache.rs index 7311034cf8..4c240b6fd8 100644 --- a/core/embed/rust/src/ui/shape/cache/zlib_cache.rs +++ b/core/embed/rust/src/ui/shape/cache/zlib_cache.rs @@ -19,9 +19,9 @@ struct ZlibCacheSlot<'a> { } impl<'a> ZlibCacheSlot<'a> { - fn new<'alloc: 'a, T>(bump: &'alloc T) -> Option + fn new(bump: &'a T) -> Option where - T: LocalAllocLeakExt<'alloc>, + T: LocalAllocLeakExt<'a>, { let window = bump .alloc_t()?