1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-03 02:03:53 +00:00

Clippy fix

This commit is contained in:
adudek-bw
2025-10-21 09:22:39 -04:00
parent 7477c61f00
commit 2bb00b93ec
4 changed files with 4 additions and 4 deletions

View File

@@ -108,7 +108,7 @@ pub async fn import_logins(
Ok(results)
}
pub fn configure_windows_crypto_service(admin_exe_path: &String) {
pub fn configure_windows_crypto_service(admin_exe_path: &str) {
platform::configure_windows_crypto_service(admin_exe_path);
}

View File

@@ -46,7 +46,7 @@ pub fn get_crypto_service(
// Need to allow this to match the signature on other platforms. On Linux this is a no-op.
#[allow(clippy::ptr_arg)]
pub fn configure_windows_crypto_service(_admin_exe_path: &String) {
pub fn configure_windows_crypto_service(_admin_exe_path: &str) {
// Do nothing on Linux
}

View File

@@ -55,7 +55,7 @@ pub fn get_crypto_service(
// Need to allow this to match the signature on other platforms. On macOS this is a no-op.
#[allow(clippy::ptr_arg)]
pub fn configure_windows_crypto_service(_admin_exe_path: &String) {
pub fn configure_windows_crypto_service(_admin_exe_path: &str) {
// Do nothing on macOS
}

View File

@@ -48,7 +48,7 @@ pub fn get_crypto_service(
Ok(Box::new(WindowsCryptoService::new(local_state)))
}
pub fn configure_windows_crypto_service(admin_exe_path: &String) {
pub fn configure_windows_crypto_service(admin_exe_path: &str) {
*ADMIN_EXE_PATH.lock().unwrap() = Some(admin_exe_path.clone());
}