Skip to content

Commit

Permalink
Merge pull request #643 from stevenroose/borrowed-str-lifetime
Browse files Browse the repository at this point in the history
Add correct lifetime to kv::Value::to_borrowed_str
  • Loading branch information
KodrAus authored Nov 13, 2024
2 parents 9f8c0d1 + ac76985 commit 70fead8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kv/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ impl<'v> Value<'v> {
}

/// Try to convert this value into a borrowed string.
pub fn to_borrowed_str(&self) -> Option<&str> {
pub fn to_borrowed_str(&self) -> Option<&'v str> {
self.inner.to_borrowed_str()
}
}
Expand Down

0 comments on commit 70fead8

Please sign in to comment.