From 8ffdee7ad76e890422a29dfd1e0cab7b7c3a2528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Fri, 7 Jun 2024 12:17:56 +0200 Subject: [PATCH] fix: don't take explicit reference in `update_interrupt` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Kröning --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index de4737b..1911cff 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -435,7 +435,7 @@ impl EndpointHeader { (data.get_bits(8..16) as u8, data.get_bits(0..8) as u8) } - pub fn update_interrupt(&mut self, access: &impl ConfigRegionAccess, f: F) + pub fn update_interrupt(&mut self, access: impl ConfigRegionAccess, f: F) where F: FnOnce((InterruptPin, InterruptLine)) -> (InterruptPin, InterruptLine), {