Skip to content

Commit

Permalink
minor: fix lifetime of RawElement::key (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
abr-egn authored May 14, 2024
1 parent 9c4b963 commit 8ecf27a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/raw/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl<'a> RawElement<'a> {
self.size
}

pub fn key(&self) -> &str {
pub fn key(&self) -> &'a str {
self.key
}

Expand Down

0 comments on commit 8ecf27a

Please sign in to comment.