Skip to content

Commit

Permalink
Merge pull request #587 from peterjoel/kv_lifetime
Browse files Browse the repository at this point in the history
Fix incorrect lifetime in Value::to_str()
  • Loading branch information
KodrAus authored Oct 9, 2023
2 parents 87808fb + 2e72135 commit bc5ca09
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 @@ -635,7 +635,7 @@ mod std_support {

impl<'v> Value<'v> {
/// Try convert this value into a string.
pub fn to_str(&self) -> Option<Cow<str>> {
pub fn to_str(&self) -> Option<Cow<'v, str>> {
self.inner.to_str()
}
}
Expand Down

0 comments on commit bc5ca09

Please sign in to comment.