From ebfd6373004eb6c240c4a3d61d23d89fc0cd7064 Mon Sep 17 00:00:00 2001 From: Corwin Kuiper Date: Wed, 23 Jun 2021 18:53:37 +0100 Subject: [PATCH] satisfy linter by removing elidable lifetime --- agb/src/interrupt.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/agb/src/interrupt.rs b/agb/src/interrupt.rs index 7db37619..7eecbfb6 100644 --- a/agb/src/interrupt.rs +++ b/agb/src/interrupt.rs @@ -151,10 +151,7 @@ fn get_interrupt_handle_root<'a>( } } -pub fn get_interrupt_handle<'a>( - f: &'a mut dyn FnMut(), - interrupt: Interrupt, -) -> InterruptClosureBounded<'a> { +pub fn get_interrupt_handle(f: &mut dyn FnMut(), interrupt: Interrupt) -> InterruptClosureBounded { let root = match interrupt { Interrupt::VBlank => unsafe { &INTERRUPT_TABLE.vblank }, _ => unimplemented!(