From f05791b5dcc77f7caede5e3f28b6131acbb12afb Mon Sep 17 00:00:00 2001 From: Corwin Date: Thu, 31 Mar 2022 22:59:23 +0100 Subject: [PATCH] add send sync requirement --- agb/src/interrupt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agb/src/interrupt.rs b/agb/src/interrupt.rs index 9aed669e..1489f081 100644 --- a/agb/src/interrupt.rs +++ b/agb/src/interrupt.rs @@ -241,7 +241,7 @@ fn interrupt_to_root(interrupt: Interrupt) -> &'static InterruptRoot { /// ``` pub fn add_interrupt_handler<'a>( interrupt: Interrupt, - handler: impl Fn(&CriticalSection) + 'a, + handler: impl Fn(&CriticalSection) + Send + Sync + 'a, ) -> InterruptHandler<'a> { fn do_with_inner<'a>( interrupt: Interrupt,