Skip to content

Commit

Permalink
core: fix elided lifetime clippy lint in test
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkw committed Jun 30, 2022
1 parent 8df4a17 commit d0b93c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tracing-core/src/callsite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,9 +501,9 @@ mod tests {

let linked_list = LinkedList::new();

fn expect<'a>(
callsites: &'a mut impl Iterator<Item = &'static Registration>,
) -> impl FnMut(&'static Registration) + 'a {
fn expect(
callsites: &mut impl Iterator<Item = &'static Registration>,
) -> impl FnMut(&'static Registration) + '_ {
move |reg: &'static Registration| {
let ptr = callsites
.next()
Expand Down

0 comments on commit d0b93c8

Please sign in to comment.