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 }