Skip to content

Commit

Permalink
Fix clippy lints (#112)
Browse files Browse the repository at this point in the history
## 🎟️ Tracking

<!-- Paste the link to the Jira or GitHub issue or otherwise describe /
point to where this change is coming from. -->

## 📔 Objective

Fix some lints introduced by Rust 1.84

## ⏰ Reminders before review

- Contributor guidelines followed
- All formatters and local linters executed and passed
- Written new unit and / or integration tests where applicable
- Protected functional changes with optionality (feature flags)
- Used internationalization (i18n) for all UI strings
- CI builds passed
- Communicated to DevOps any deployment requirements
- Updated any necessary documentation (Confluence, contributing docs) or
informed the documentation
  team

## 🦮 Reviewer guidelines

<!-- Suggested interactions but feel free to use (or not) as you desire!
-->

- 👍 (`:+1:`) or similar for great changes
- 📝 (`:memo:`) or ℹ️ (`:information_source:`) for notes or general info
- ❓ (`:question:`) for questions
- 🤔 (`:thinking:`) or 💭 (`:thought_balloon:`) for more open inquiry
that's not quite a confirmed
  issue and could potentially benefit from discussion
- 🎨 (`:art:`) for suggestions / improvements
- ❌ (`:x:`) or ⚠️ (`:warning:`) for more significant problems or
concerns needing attention
- 🌱 (`:seedling:`) or ♻️ (`:recycle:`) for future improvements or
indications of technical debt
- ⛏ (`:pick:`) for minor or nitpick changes
  • Loading branch information
dani-garcia authored Jan 10, 2025
1 parent afac7e6 commit 6ee709e
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 6ee709e

Please sign in to comment.