Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-garcia committed Jan 10, 2025
1 parent afac7e6 commit 6a6e513
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions crates/bitwarden-core/src/auth/auth_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub struct AuthClient<'a> {
pub(crate) client: &'a crate::Client,
}

impl<'a> AuthClient<'a> {
impl AuthClient<'_> {
pub async fn renew_token(&self) -> Result<()> {
renew_token(&self.client.internal).await
}
Expand All @@ -44,7 +44,7 @@ impl<'a> AuthClient<'a> {
}

#[cfg(feature = "internal")]
impl<'a> AuthClient<'a> {
impl AuthClient<'_> {
pub fn password_strength(
&self,
password: String,
Expand Down Expand Up @@ -142,7 +142,7 @@ impl<'a> AuthClient<'a> {
}

#[cfg(feature = "internal")]
impl<'a> AuthClient<'a> {
impl AuthClient<'_> {
pub async fn login_device(
&self,
email: String,
Expand Down
2 changes: 1 addition & 1 deletion crates/bitwarden-core/src/mobile/client_kdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub struct ClientKdf<'a> {
pub(crate) _client: &'a crate::Client,
}

impl<'a> ClientKdf<'a> {
impl ClientKdf<'_> {
pub async fn hash_password(
&self,
email: String,
Expand Down
2 changes: 1 addition & 1 deletion crates/bitwarden-core/src/mobile/crypto_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub struct CryptoClient<'a> {
pub(crate) client: &'a crate::Client,
}

impl<'a> CryptoClient<'a> {
impl CryptoClient<'_> {
pub async fn initialize_user_crypto(
&self,
req: InitUserCryptoRequest,
Expand Down
2 changes: 1 addition & 1 deletion crates/bitwarden-core/src/platform/platform_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub struct PlatformClient<'a> {
pub(crate) client: &'a Client,
}

impl<'a> PlatformClient<'a> {
impl PlatformClient<'_> {
pub fn fingerprint(&self, input: &FingerprintRequest) -> Result<FingerprintResponse> {
generate_fingerprint(input)
}
Expand Down
2 changes: 1 addition & 1 deletion crates/bitwarden-fido/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub struct Fido2Client<'a> {
pub authenticator: Fido2Authenticator<'a>,
}

impl<'a> Fido2Client<'a> {
impl Fido2Client<'_> {
pub async fn register(
&mut self,
origin: Origin,
Expand Down

0 comments on commit 6a6e513

Please sign in to comment.