mirror of
https://github.com/bitwarden/browser
synced 2026-02-03 02:03:53 +00:00
Clippy fix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user