@@ -336,7 +336,7 @@ pub struct EventLog<'a> {
336
336
impl EventLog < ' _ > {
337
337
/// Iterator of events in the log.
338
338
#[ must_use]
339
- pub fn iter ( & self ) -> EventLogIter {
339
+ pub fn iter ( & self ) -> EventLogIter < ' _ > {
340
340
if let Some ( header) = self . header ( ) {
341
341
// Advance past the header
342
342
let location = unsafe { self . location . add ( header. size_in_bytes ) } ;
@@ -356,7 +356,7 @@ impl EventLog<'_> {
356
356
}
357
357
358
358
/// Header at the beginning of the event log.
359
- fn header ( & self ) -> Option < EventLogHeader > {
359
+ fn header ( & self ) -> Option < EventLogHeader < ' _ > > {
360
360
// The spec is unclear if the header is present when there are
361
361
// no entries, so lets assume that `self.location` will be null
362
362
// if there's no header, and otherwise valid.
@@ -513,7 +513,7 @@ impl<'a> PcrEvent<'a> {
513
513
514
514
/// Digests of the data hashed for this event.
515
515
#[ must_use]
516
- pub fn digests ( & self ) -> PcrEventDigests {
516
+ pub fn digests ( & self ) -> PcrEventDigests < ' _ > {
517
517
PcrEventDigests {
518
518
data : self . digests ,
519
519
algorithm_digest_sizes : self . algorithm_digest_sizes . clone ( ) ,
@@ -579,7 +579,7 @@ impl Tcg {
579
579
580
580
/// Get the V1 event log. This provides events in the same format as a V1
581
581
/// 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 < ' _ > > {
583
583
let mut location = 0 ;
584
584
let mut last_entry = 0 ;
585
585
let mut truncated = 0 ;
@@ -608,7 +608,7 @@ impl Tcg {
608
608
}
609
609
610
610
/// 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 < ' _ > > {
612
612
let mut location = 0 ;
613
613
let mut last_entry = 0 ;
614
614
let mut truncated = 0 ;
0 commit comments