Skip to content

Commit d077b71

Browse files
authored
Merge pull request #43 from A-Manning/2025-11-19-fix-objectasvec-lifetime
Fix unnecessary short lifetime in ObjectAsVec::as_vec
2 parents 426d8ee + 427968f commit d077b71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/object_vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl<'ctx> ObjectAsVec<'ctx> {
5353
/// methods instead. This could be a problem with feature unification, when one crate uses it
5454
/// as `&str` and another uses it as `Cow<str>`, both will get `Cow<str>`
5555
#[inline]
56-
pub fn as_vec(&self) -> &Vec<(KeyStrType, Value<'ctx>)> {
56+
pub fn as_vec(&self) -> &Vec<(KeyStrType<'ctx>, Value<'ctx>)> {
5757
&self.0
5858
}
5959

0 commit comments

Comments
 (0)