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()?