File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ impl PciHeader {
198
198
CommandRegister :: from_bits_retain ( data as u16 )
199
199
}
200
200
201
- pub fn update_command < F > ( & self , access : impl ConfigRegionAccess , f : F )
201
+ pub fn update_command < F > ( & mut self , access : impl ConfigRegionAccess , f : F )
202
202
where
203
203
F : FnOnce ( CommandRegister ) -> CommandRegister ,
204
204
{
@@ -279,7 +279,7 @@ impl EndpointHeader {
279
279
self . header ( ) . command ( access)
280
280
}
281
281
282
- pub fn update_command < F > ( & self , access : impl ConfigRegionAccess , f : F )
282
+ pub fn update_command < F > ( & mut self , access : impl ConfigRegionAccess , f : F )
283
283
where
284
284
F : FnOnce ( CommandRegister ) -> CommandRegister ,
285
285
{
@@ -517,7 +517,7 @@ impl PciPciBridgeHeader {
517
517
self . header ( ) . command ( access)
518
518
}
519
519
520
- pub fn update_command < F > ( & self , access : impl ConfigRegionAccess , f : F )
520
+ pub fn update_command < F > ( & mut self , access : impl ConfigRegionAccess , f : F )
521
521
where
522
522
F : FnOnce ( CommandRegister ) -> CommandRegister ,
523
523
{
You can’t perform that action at this time.
0 commit comments