@@ -128,7 +128,7 @@ impl<S, N: Clone, A: counter::Atomic<N>> CounterWithExemplar<S, N, A> {
128128
129129 /// Get the current value of the [`CounterWithExemplar`] as well as its
130130 /// [`Exemplar`] if any.
131- pub fn get ( & self ) -> ( N , MappedRwLockReadGuard < Option < Exemplar < S , N > > > ) {
131+ pub fn get ( & self ) -> ( N , MappedRwLockReadGuard < ' _ , Option < Exemplar < S , N > > > ) {
132132 let inner = self . inner . read ( ) ;
133133 let value = inner. counter . get ( ) ;
134134 let exemplar = RwLockReadGuard :: map ( inner, |inner| & inner. exemplar ) ;
@@ -143,7 +143,7 @@ impl<S, N: Clone, A: counter::Atomic<N>> CounterWithExemplar<S, N, A> {
143143 /// The caller of this function has to uphold the property of an Open
144144 /// Metrics counter namely that the value is monotonically increasing, i.e.
145145 /// either stays the same or increases.
146- pub fn inner ( & self ) -> MappedRwLockReadGuard < A > {
146+ pub fn inner ( & self ) -> MappedRwLockReadGuard < ' _ , A > {
147147 RwLockReadGuard :: map ( self . inner . read ( ) , |inner| inner. counter . inner ( ) )
148148 }
149149}
@@ -261,7 +261,7 @@ impl<S> HistogramWithExemplars<S> {
261261 }
262262 }
263263
264- pub ( crate ) fn inner ( & self ) -> RwLockReadGuard < HistogramWithExemplarsInner < S > > {
264+ pub ( crate ) fn inner ( & self ) -> RwLockReadGuard < ' _ , HistogramWithExemplarsInner < S > > {
265265 self . inner . read ( )
266266 }
267267}
0 commit comments