From f90cd34ab8e5a5656bbb0e9c9d1096fc37f790cb Mon Sep 17 00:00:00 2001 From: Francesco Parolini Date: Fri, 21 Nov 2025 11:15:53 +0000 Subject: [PATCH] explicitly annotate lifetime in return types --- wasm-mappings/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wasm-mappings/src/lib.rs b/wasm-mappings/src/lib.rs index e93736f6..9577bfbe 100755 --- a/wasm-mappings/src/lib.rs +++ b/wasm-mappings/src/lib.rs @@ -274,7 +274,7 @@ impl Mappings { /// Iterate over all mappings that contain original location information, /// sorted by their original location information. #[inline] - pub fn by_original_location(&mut self) -> ByOriginalLocation { + pub fn by_original_location(&mut self) -> ByOriginalLocation<'_, O::SortByOriginalLocation> { ByOriginalLocation { buckets: self.source_buckets().iter_mut(), this_bucket: [].iter(), @@ -389,7 +389,7 @@ impl Mappings { source: u32, original_line: u32, original_column: Option, - ) -> AllGeneratedLocationsFor { + ) -> AllGeneratedLocationsFor<'_> { let _observer = O::AllGeneratedLocationsFor::default(); let query_column = original_column.unwrap_or(0);