Skip to content

Commit

Permalink
fix: don't take explicit reference in update_interrupt
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <martin.kroening@eonerc.rwth-aachen.de>
  • Loading branch information
mkroening authored and IsaacWoods committed Jun 9, 2024
1 parent 9e036db commit a18bdc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ impl EndpointHeader {
(data.get_bits(8..16) as u8, data.get_bits(0..8) as u8)
}

pub fn update_interrupt<F>(&mut self, access: &impl ConfigRegionAccess, f: F)
pub fn update_interrupt<F>(&mut self, access: impl ConfigRegionAccess, f: F)
where
F: FnOnce((InterruptPin, InterruptLine)) -> (InterruptPin, InterruptLine),
{
Expand Down

0 comments on commit a18bdc0

Please sign in to comment.