@@ -91,7 +91,7 @@ impl Sampler {
9191 ///
9292 /// [`next_blocking`]: Self::next_blocking
9393 /// [man]: https://www.mankier.com/2/perf_event_open
94- pub fn next_record ( & mut self ) -> Option < Record > {
94+ pub fn next_record ( & mut self ) -> Option < Record < ' _ > > {
9595 use std:: { mem, ptr, slice} ;
9696
9797 let page = self . page ( ) ;
@@ -163,7 +163,7 @@ impl Sampler {
163163 /// `libc::poll`. There are only two cases where this can happen:
164164 /// - the current process has run out of file descriptors, or,
165165 /// - the kernel couldn't allocate memory for internal poll datastructures.
166- pub fn next_blocking ( & mut self , timeout : Option < Duration > ) -> Option < Record > {
166+ pub fn next_blocking ( & mut self , timeout : Option < Duration > ) -> Option < Record < ' _ > > {
167167 let deadline = timeout. map ( |timeout| Instant :: now ( ) + timeout) ;
168168
169169 loop {
@@ -587,7 +587,7 @@ impl<'s> Record<'s> {
587587 ///
588588 /// For most records this is effectively free but if the record wraps
589589 /// around the end of the ringbuffer then it will be copied to a vector.
590- pub fn to_contiguous ( & self ) -> Cow < [ u8 ] > {
590+ pub fn to_contiguous ( & self ) -> Cow < ' _ , [ u8 ] > {
591591 match self . data {
592592 ByteBuffer :: Single ( data) => Cow :: Borrowed ( data) ,
593593 ByteBuffer :: Split ( [ a, b] ) => {
@@ -600,7 +600,7 @@ impl<'s> Record<'s> {
600600 }
601601
602602 /// Parse the data in this record to a [`data::Record`] enum.
603- pub fn parse_record ( & self ) -> ParseResult < data:: Record > {
603+ pub fn parse_record ( & self ) -> ParseResult < data:: Record < ' _ > > {
604604 let mut parser = Parser :: new ( self . data , self . sampler . config ( ) . clone ( ) ) ;
605605 data:: Record :: parse_with_header ( & mut parser, self . header )
606606 }
0 commit comments