Skip to content

Commit

Permalink
ci: update Rust to 1.84.0
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Jan 10, 2025
1 parent a9e177f commit cb43382
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/coredeps/install-rust.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 2 additions & 4 deletions src/imap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cb43382

Please sign in to comment.