Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ impl PciHeader {
CommandRegister::from_bits_retain(data as u16)
}

pub fn update_command<F>(&self, access: impl ConfigRegionAccess, f: F)
pub fn update_command<F>(&mut self, access: impl ConfigRegionAccess, f: F)
where
F: FnOnce(CommandRegister) -> CommandRegister,
{
Expand Down Expand Up @@ -279,7 +279,7 @@ impl EndpointHeader {
self.header().command(access)
}

pub fn update_command<F>(&self, access: impl ConfigRegionAccess, f: F)
pub fn update_command<F>(&mut self, access: impl ConfigRegionAccess, f: F)
where
F: FnOnce(CommandRegister) -> CommandRegister,
{
Expand Down Expand Up @@ -517,7 +517,7 @@ impl PciPciBridgeHeader {
self.header().command(access)
}

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