@@ -336,7 +336,7 @@ pub struct EventLog<'a> {
336336impl EventLog < ' _ > {
337337 /// Iterator of events in the log.
338338 #[ must_use]
339- pub fn iter ( & self ) -> EventLogIter {
339+ pub fn iter ( & self ) -> EventLogIter < ' _ > {
340340 if let Some ( header) = self . header ( ) {
341341 // Advance past the header
342342 let location = unsafe { self . location . add ( header. size_in_bytes ) } ;
@@ -356,7 +356,7 @@ impl EventLog<'_> {
356356 }
357357
358358 /// Header at the beginning of the event log.
359- fn header ( & self ) -> Option < EventLogHeader > {
359+ fn header ( & self ) -> Option < EventLogHeader < ' _ > > {
360360 // The spec is unclear if the header is present when there are
361361 // no entries, so lets assume that `self.location` will be null
362362 // if there's no header, and otherwise valid.
@@ -513,7 +513,7 @@ impl<'a> PcrEvent<'a> {
513513
514514 /// Digests of the data hashed for this event.
515515 #[ must_use]
516- pub fn digests ( & self ) -> PcrEventDigests {
516+ pub fn digests ( & self ) -> PcrEventDigests < ' _ > {
517517 PcrEventDigests {
518518 data : self . digests ,
519519 algorithm_digest_sizes : self . algorithm_digest_sizes . clone ( ) ,
@@ -579,7 +579,7 @@ impl Tcg {
579579
580580 /// Get the V1 event log. This provides events in the same format as a V1
581581 /// TPM, so all events use SHA-1 hashes.
582- pub fn get_event_log_v1 ( & mut self ) -> Result < v1:: EventLog > {
582+ pub fn get_event_log_v1 ( & mut self ) -> Result < v1:: EventLog < ' _ > > {
583583 let mut location = 0 ;
584584 let mut last_entry = 0 ;
585585 let mut truncated = 0 ;
@@ -608,7 +608,7 @@ impl Tcg {
608608 }
609609
610610 /// Get the V2 event log. This format allows for a flexible list of hash types.
611- pub fn get_event_log_v2 ( & mut self ) -> Result < EventLog > {
611+ pub fn get_event_log_v2 ( & mut self ) -> Result < EventLog < ' _ > > {
612612 let mut location = 0 ;
613613 let mut last_entry = 0 ;
614614 let mut truncated = 0 ;
0 commit comments