From 427968f104c8d0e3386907ab49affc6346b0d76e Mon Sep 17 00:00:00 2001 From: Ash Manning <10554686+A-Manning@users.noreply.github.com> Date: Wed, 19 Nov 2025 21:47:50 +0800 Subject: [PATCH] Fix unnecessary short lifetime in ObjectAsVec::as_vec --- src/object_vec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object_vec.rs b/src/object_vec.rs index ae84bc1..eb01a05 100644 --- a/src/object_vec.rs +++ b/src/object_vec.rs @@ -53,7 +53,7 @@ impl<'ctx> ObjectAsVec<'ctx> { /// methods instead. This could be a problem with feature unification, when one crate uses it /// as `&str` and another uses it as `Cow`, both will get `Cow` #[inline] - pub fn as_vec(&self) -> &Vec<(KeyStrType, Value<'ctx>)> { + pub fn as_vec(&self) -> &Vec<(KeyStrType<'ctx>, Value<'ctx>)> { &self.0 }