Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix FRB lint failures

Manav Rathi3d33180ed390
diff --git a/.github/workflows/locker-internal-release.yml b/.github/workflows/locker-internal-release.yml
index f03438cc1f..ead23ff9f5 100644
--- a/.github/workflows/locker-internal-release.yml
+++ b/.github/workflows/locker-internal-release.yml
@@ -38,6 +38,7 @@ jobs:
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8
with:
toolchain: ${{ env.RUST_VERSION }}
+ components: rustfmt
- name: Generate strings localizations
run: flutter gen-l10n
diff --git a/.github/workflows/locker-lint.yml b/.github/workflows/locker-lint.yml
index f8ef60a77d..c8bbfab693 100644
--- a/.github/workflows/locker-lint.yml
+++ b/.github/workflows/locker-lint.yml
@@ -52,6 +52,7 @@ jobs:
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8
with:
toolchain: ${{ env.RUST_VERSION }}
+ components: rustfmt
- name: Cache Rust dependencies
uses: actions/cache@v4
diff --git a/.github/workflows/locker-release.yml b/.github/workflows/locker-release.yml
index aaf8d53eff..05d737f330 100644
--- a/.github/workflows/locker-release.yml
+++ b/.github/workflows/locker-release.yml
@@ -75,6 +75,7 @@ jobs:
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8
with:
toolchain: ${{ env.RUST_VERSION }}
+ components: rustfmt
- name: Generate strings localizations
run: flutter gen-l10n
diff --git a/rust/crates/accounts/src/models.rs b/rust/crates/accounts/src/models.rs
index 9873e19b22..3d306db8c4 100644
--- a/rust/crates/accounts/src/models.rs
+++ b/rust/crates/accounts/src/models.rs
@@ -128,7 +128,7 @@ impl TryFrom<AuthResponseWire> for AuthResponse {
&& value
.accounts_url
.as_ref()
- .map_or(true, |accounts_url| accounts_url.is_empty())
+ .is_none_or(|accounts_url| accounts_url.is_empty())
{
return Err("accountsUrl is required when passkeySessionID is present".into());
}