Bug 1413598 - Pull in latest changes from u2f-hid-rs git repository r=jcj
authorTim Taubert <ttaubert@mozilla.com>
Thu, 02 Nov 2017 12:18:07 +0100
changeset 443083 4814fd8f7eede29b8249c83b3048dd4129d07df4
parent 443082 100e006a2730f8a65aaebd14e30de3a055d9b46a
child 443084 3a5bfa2ffc9890b7db7c49d5eabd044c6c217e70
push id1618
push userCallek@gmail.com
push dateThu, 11 Jan 2018 17:45:48 +0000
treeherdermozilla-release@882ca853e05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjcj
bugs1413598
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1413598 - Pull in latest changes from u2f-hid-rs git repository r=jcj Reviewers: jcj Reviewed By: jcj Bug #: 1413598 Differential Revision: https://phabricator.services.mozilla.com/D181
dom/webauthn/u2f-hid-rs/.travis.yml
dom/webauthn/u2f-hid-rs/src/windows/winapi.rs
--- a/dom/webauthn/u2f-hid-rs/.travis.yml
+++ b/dom/webauthn/u2f-hid-rs/.travis.yml
@@ -1,16 +1,20 @@
 sudo: false
 language: rust
 cache: cargo
 rust:
   - stable
   - beta
   - nightly
 
+matrix:
+  allow_failures:
+    - rust: nightly
+
 addons:
   apt:
     packages:
       - build-essential
       - libudev-dev
 
 before_install:
   - pkg-config --list-all
--- a/dom/webauthn/u2f-hid-rs/src/windows/winapi.rs
+++ b/dom/webauthn/u2f-hid-rs/src/windows/winapi.rs
@@ -190,17 +190,17 @@ impl DeviceInterfaceDetailData {
             cb_size = 4 + 2; // 4-byte uint + default TCHAR size. size_of is inaccurate.
         }
 
         if size < cb_size {
             warn!("DeviceInterfaceDetailData is too small. {}", size);
             return None;
         }
 
-        let mut data = unsafe { libc::malloc(size) as PSP_DEVICE_INTERFACE_DETAIL_DATA_W };
+        let data = unsafe { libc::malloc(size) as PSP_DEVICE_INTERFACE_DETAIL_DATA_W };
         if data.is_null() {
             return None;
         }
 
         // Set total size of the structure.
         unsafe { (*data).cbSize = cb_size as UINT };
 
         // Compute offset of `SP_DEVICE_INTERFACE_DETAIL_DATA_W.DevicePath`.