diff --git a/apps/desktop/desktop_native/win_webauthn/src/plugin/com.rs b/apps/desktop/desktop_native/win_webauthn/src/plugin/com.rs index d3c5830abaa..bdc1e9fbe3f 100644 --- a/apps/desktop/desktop_native/win_webauthn/src/plugin/com.rs +++ b/apps/desktop/desktop_native/win_webauthn/src/plugin/com.rs @@ -1,5 +1,7 @@ //! Functions for interacting with Windows COM. -#[allow(non_snake_case)] +#![allow(non_snake_case)] +#![allow(non_camel_case_types)] + use std::{ alloc, mem::MaybeUninit, diff --git a/apps/desktop/desktop_native/win_webauthn/src/util.rs b/apps/desktop/desktop_native/win_webauthn/src/util.rs index 763d2ccd0b0..a48c75cbfd1 100644 --- a/apps/desktop/desktop_native/win_webauthn/src/util.rs +++ b/apps/desktop/desktop_native/win_webauthn/src/util.rs @@ -61,9 +61,6 @@ pub(super) fn free_webauthn_lib(library: HMODULE) -> Result<(), WinWebAuthnError } pub(super) trait WindowsString { fn to_utf16(&self) -> Vec; - - // Copies a string to a buffer from the OLE allocator - // fn to_com_utf16(&self) -> (*mut u16, u32); } impl WindowsString for str { @@ -71,18 +68,6 @@ impl WindowsString for str { // null-terminated UTF-16 self.encode_utf16().chain(std::iter::once(0)).collect() } - - /* - fn to_com_utf16(&self) -> (*mut u16, u32) { - let wide_bytes: Vec = self - .to_utf16() - .into_iter() - .flat_map(|x| x.to_le_bytes()) - .collect(); - let (ptr, byte_count) = ComBuffer::from_buffer(&wide_bytes); - (ptr as *mut u16, byte_count) - } - */ } pub struct ArrayPointerIterator<'a, T> {