Closed Bug 1413639 Opened 7 years ago Closed 7 years ago

u2f-hid-rs: variable does not need to be mutable warning on windows

Categories

(Core :: DOM: Device Interfaces, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1413598

People

(Reporter: rillian, Assigned: rillian)

Details

Attachments

(1 file)

u2fhid warns on windows targets:

warning: variable does not need to be mutable
   --> src/windows/winapi.rs:198:13
    |
198 |         let mut data = unsafe { libc::malloc(size) as PSP_DEVICE_INTERFACE_DETAIL_DATA_W };
    |             ^^^^^^^^
    |
    = note: #[warn(unused_mut)] on by default

    Finished dev [unoptimized + debuginfo] target(s) in 24.66 secs
Comment on attachment 8924253 [details]
Bug 1413639: u2f-hid-rs: Remove unnecessary mut annotation.

Moving this to Tim, who is closer to this code
Attachment #8924253 - Flags: review?(jjones) → review?(ttaubert)
Comment on attachment 8924253 [details]
Bug 1413639: u2f-hid-rs: Remove unnecessary mut annotation.

https://reviewboard.mozilla.org/r/195464/#review200924

Thanks for the patch, Ralph! I'm about to land https://phabricator.services.mozilla.com/D181 which already contains a fix for this warning. Let's dupe this.
Attachment #8924253 - Flags: review?(ttaubert)
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: