1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

fix more clippy lints not caught locally

This commit is contained in:
John Harrington
2025-11-21 13:29:58 -07:00
parent abf8991a90
commit 9fbf45e7a5
3 changed files with 5 additions and 5 deletions

View File

@@ -97,8 +97,8 @@ pub fn request_browser_access(browser_name: &str) -> Result<()> {
}
pub async fn import_logins(
browser_name: &String,
profile_id: &String,
browser_name: &str,
profile_id: &str,
) -> Result<Vec<LoginImportResult>> {
// In sandbox mode, resume access to browser directory (use the formerly created bookmark)
#[cfg(all(target_os = "macos", feature = "sandbox"))]
@@ -246,7 +246,7 @@ struct EncryptedLogin {
fn get_logins(
browser_dir: &Path,
profile_id: &String,
profile_id: &str,
filename: &str,
) -> Result<Vec<EncryptedLogin>> {
let login_data_path = browser_dir.join(profile_id).join(filename);

View File

@@ -35,7 +35,7 @@ pub(crate) const SUPPORTED_BROWSERS: &[BrowserConfig] = &[
];
pub(crate) fn get_crypto_service(
browser_name: &String,
browser_name: &str,
_local_state: &LocalState,
) -> Result<Box<dyn CryptoService>> {
let config = KEYRING_CONFIG

View File

@@ -114,7 +114,7 @@ pub(crate) const SUPPORTED_BROWSERS: &[BrowserConfig] = &[
];
pub(crate) fn get_crypto_service(
browser_name: &String,
browser_name: &str,
_local_state: &LocalState,
) -> Result<Box<dyn CryptoService>> {
let config = KEYCHAIN_CONFIG