Skip to content

Commit

Permalink
Add correct lifetime to kv::Value::to_borrowed_str
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenroose committed Nov 13, 2024
1 parent 9f8c0d1 commit ac76985
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 ac76985

Please sign in to comment.