satisfy linter by removing elidable lifetime

This commit is contained in:
Corwin Kuiper 2021-06-23 18:53:37 +01:00
parent 2cc0bee7c3
commit ebfd637300

View file

@ -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!(