Skip to content

Commit

Permalink
Fixes the lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczmarczyck committed Apr 8, 2024
1 parent 3fd77a9 commit 85a06db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/opensk/src/api/persist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Option<Cow<[u8]>>> {
) -> CtapResult<Option<Cow<'a, [u8]>>> {
if let Some(buffer) = buffer {
let start = cmp::min(offset, buffer.len());
let end = offset.saturating_add(byte_count);
Expand Down

0 comments on commit 85a06db

Please sign in to comment.