From 85a06dbd9bedce4600e5eb4c2928759ffcbd712d Mon Sep 17 00:00:00 2001 From: Fabian Kaczmarczyck Date: Mon, 8 Apr 2024 16:46:06 +0200 Subject: [PATCH] Fixes the lifetime --- libraries/opensk/src/api/persist.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/opensk/src/api/persist.rs b/libraries/opensk/src/api/persist.rs index 48d5cd8f..a11548cc 100644 --- a/libraries/opensk/src/api/persist.rs +++ b/libraries/opensk/src/api/persist.rs @@ -265,11 +265,11 @@ pub trait Persist { /// /// The buffer is passed in when writing is in process. fn get_large_blob<'a>( - &'a self, + &self, mut offset: usize, byte_count: usize, buffer: Option<&'a LargeBlobBuffer>, - ) -> CtapResult>> { + ) -> CtapResult>> { if let Some(buffer) = buffer { let start = cmp::min(offset, buffer.len()); let end = offset.saturating_add(byte_count);