mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
Bump Rust version to 1.91.1 (#17864)
* Bump Rust version to 1.91.1 * clippy * clippy
This commit is contained in:
@@ -285,8 +285,8 @@ async fn windows_hello_authenticate_with_crypto(
|
|||||||
return Err(anyhow!("Failed to sign data"));
|
return Err(anyhow!("Failed to sign data"));
|
||||||
}
|
}
|
||||||
|
|
||||||
let signature_buffer = signature.Result()?;
|
let mut signature_buffer = signature.Result()?;
|
||||||
let signature_value = unsafe { as_mut_bytes(&signature_buffer)? };
|
let signature_value = unsafe { as_mut_bytes(&mut signature_buffer)? };
|
||||||
|
|
||||||
// The signature is deterministic based on the challenge and keychain key. Thus, it can be
|
// The signature is deterministic based on the challenge and keychain key. Thus, it can be
|
||||||
// hashed to a key. It is unclear what entropy this key provides.
|
// hashed to a key. It is unclear what entropy this key provides.
|
||||||
@@ -368,7 +368,7 @@ fn decrypt_data(
|
|||||||
Ok(plaintext)
|
Ok(plaintext)
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe fn as_mut_bytes(buffer: &IBuffer) -> Result<&mut [u8]> {
|
unsafe fn as_mut_bytes(buffer: &mut IBuffer) -> Result<&mut [u8]> {
|
||||||
let interop = buffer.cast::<IBufferByteAccess>()?;
|
let interop = buffer.cast::<IBufferByteAccess>()?;
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
[toolchain]
|
[toolchain]
|
||||||
channel = "1.87.0"
|
channel = "1.91.1"
|
||||||
components = [ "rustfmt", "clippy" ]
|
components = [ "rustfmt", "clippy" ]
|
||||||
profile = "minimal"
|
profile = "minimal"
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ fn add_authenticator() -> std::result::Result<(), String> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type EXPERIMENTAL_WebAuthNPluginAddAuthenticatorFnDeclaration = unsafe extern "cdecl" fn(
|
type EXPERIMENTAL_WebAuthNPluginAddAuthenticatorFnDeclaration = unsafe extern "C" fn(
|
||||||
pPluginAddAuthenticatorOptions: *const webauthn::ExperimentalWebAuthnPluginAddAuthenticatorOptions,
|
pPluginAddAuthenticatorOptions: *const webauthn::ExperimentalWebAuthnPluginAddAuthenticatorOptions,
|
||||||
ppPluginAddAuthenticatorResponse: *mut *mut webauthn::ExperimentalWebAuthnPluginAddAuthenticatorResponse,
|
ppPluginAddAuthenticatorResponse: *mut *mut webauthn::ExperimentalWebAuthnPluginAddAuthenticatorResponse,
|
||||||
) -> HRESULT;
|
) -> HRESULT;
|
||||||
|
|||||||
Reference in New Issue
Block a user