Skip to content

Commit

Permalink
Merge pull request #204 from a1ien/small_fix
Browse files Browse the repository at this point in the history
Remove unneeded mut
  • Loading branch information
a1ien authored Apr 27, 2024
2 parents cb13e85 + adc50a8 commit 0f07c05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libusb1-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ pub unsafe fn libusb_fill_control_setup(
wIndex: u16,
wLength: u16,
) {
let mut setup: *mut libusb_control_setup = buffer as *mut _;
let setup: *mut libusb_control_setup = buffer as *mut _;
(*setup).bmRequestType = bmRequestType;
(*setup).bRequest = bRequest;
(*setup).wValue = wValue.to_le();
Expand Down

0 comments on commit 0f07c05

Please sign in to comment.