Skip to content

Commit

Permalink
CommandView: precise lifetime of data
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Nov 24, 2023
1 parent a2ee8a2 commit 348238e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl<'a> CommandView<'a> {
self.instruction
}

pub fn data(&self) -> &[u8] {
pub fn data(&self) -> &'a [u8] {
self.data
}

Expand Down

0 comments on commit 348238e

Please sign in to comment.