Skip to content

Commit

Permalink
Remove unneeded mut
Browse files Browse the repository at this point in the history
  • Loading branch information
a1ien committed Apr 27, 2024
1 parent cb13e85 commit adc50a8
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 adc50a8

Please sign in to comment.