1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-02 09:43:29 +00:00
This commit is contained in:
Anders Åberg
2025-07-08 11:56:28 +02:00
parent 706018c742
commit dcfb1a9369
2 changed files with 3 additions and 5 deletions

View File

@@ -5,7 +5,6 @@ use napi::{
};
use serde_json;
use tokio::sync::mpsc;
use windows_plugin_authenticator::util;
// Use the PasskeyRequestEvent from the parent module
pub use crate::passkey_authenticator::{PasskeyRequestEvent, SyncedCredential};
@@ -52,7 +51,6 @@ pub async fn on_request(
match promise_result {
Ok(promise_result) => match promise_result.await {
Ok(result) => {
util::message(&format!("CALLBACK COMPLETED WITH RESPONSE: {}", result));
// Parse the JSON response directly back to Rust enum
let response: windows_plugin_authenticator::PasskeyResponse =
match serde_json::from_str(&result) {

View File

@@ -554,7 +554,7 @@ impl EXPERIMENTAL_IPluginAuthenticator_Impl for PluginAuthenticatorComObject_Imp
unsafe fn EXPERIMENTAL_PluginCancelOperation(
&self,
request: *const ExperimentalWebAuthnPluginCancelOperationRequest,
_request: *const ExperimentalWebAuthnPluginCancelOperationRequest,
) -> HRESULT {
debug_log("EXPERIMENTAL_PluginCancelOperation() called");
HRESULT(0)
@@ -564,7 +564,7 @@ impl EXPERIMENTAL_IPluginAuthenticator_Impl for PluginAuthenticatorComObject_Imp
impl IClassFactory_Impl for Factory_Impl {
fn CreateInstance(
&self,
outer: windows_core::Ref<IUnknown>,
_outer: windows_core::Ref<IUnknown>,
iid: *const windows_core::GUID,
object: *mut *mut core::ffi::c_void,
) -> windows_core::Result<()> {
@@ -572,7 +572,7 @@ impl IClassFactory_Impl for Factory_Impl {
unsafe { unknown.query(iid, object).ok() }
}
fn LockServer(&self, lock: windows_core::BOOL) -> windows_core::Result<()> {
fn LockServer(&self, _lock: windows_core::BOOL) -> windows_core::Result<()> {
Ok(())
}
}