From cb43382896c3f2d5e86259b3fb293e85cab48a82 Mon Sep 17 00:00:00 2001 From: link2xt Date: Fri, 10 Jan 2025 00:57:01 +0000 Subject: [PATCH] ci: update Rust to 1.84.0 --- .github/workflows/ci.yml | 8 ++++---- scripts/coredeps/install-rust.sh | 2 +- src/imap.rs | 6 ++---- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5eab3524b1..aa0ef84150 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: name: Lint Rust runs-on: ubuntu-latest env: - RUSTUP_TOOLCHAIN: 1.83.0 + RUSTUP_TOOLCHAIN: 1.84.0 steps: - uses: actions/checkout@v4 with: @@ -97,11 +97,11 @@ jobs: matrix: include: - os: ubuntu-latest - rust: 1.83.0 + rust: 1.84.0 - os: windows-latest - rust: 1.83.0 + rust: 1.84.0 - os: macos-latest - rust: 1.83.0 + rust: 1.84.0 # Minimum Supported Rust Version = 1.77.0 - os: ubuntu-latest diff --git a/scripts/coredeps/install-rust.sh b/scripts/coredeps/install-rust.sh index 0d93168446..844b8442a4 100755 --- a/scripts/coredeps/install-rust.sh +++ b/scripts/coredeps/install-rust.sh @@ -7,7 +7,7 @@ set -euo pipefail # # Avoid using rustup here as it depends on reading /proc/self/exe and # has problems running under QEMU. -RUST_VERSION=1.83.0 +RUST_VERSION=1.84.0 ARCH="$(uname -m)" test -f "/lib/libc.musl-$ARCH.so.1" && LIBC=musl || LIBC=gnu diff --git a/src/imap.rs b/src/imap.rs index 9248db7d4f..8d63047812 100644 --- a/src/imap.rs +++ b/src/imap.rs @@ -1589,10 +1589,8 @@ impl Session { }; if self.can_metadata() && self.can_push() { - let device_token_changed = context - .get_config(Config::DeviceToken) - .await? - .map_or(true, |config_token| device_token != config_token); + let device_token_changed = + context.get_config(Config::DeviceToken).await?.as_ref() != Some(&device_token); if device_token_changed { let folder = context