Skip to content

Commit 5adf745

Browse files
committed
ci: update Rust to 1.97.0
1 parent 079fb35 commit 5adf745

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ permissions: {}
2020

2121
env:
2222
RUSTFLAGS: -Dwarnings
23-
RUST_VERSION: 1.95.0
23+
RUST_VERSION: 1.97.0
2424

2525
# Minimum Supported Rust Version
2626
MSRV: 1.89.0

src/chat.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,8 +1794,7 @@ impl Chat {
17941794
}
17951795

17961796
let is_bot = context.get_config_bool(Config::Bot).await?;
1797-
msg.param
1798-
.set_optional(Param::Bot, Some("1").filter(|_| is_bot));
1797+
msg.param.set_optional(Param::Bot, is_bot.then_some("1"));
17991798

18001799
// Set "In-Reply-To:" to identify the message to which the composed message is a reply.
18011800
// Set "References:" to identify the "thread" of the conversation.

src/imex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ async fn export_self_keys(context: &Context, dir: &Path) -> Result<()> {
673673
.await?;
674674
let self_addr = context.get_primary_self_addr().await?;
675675
for (id, private_key, is_default) in keys {
676-
let id = Some(id).filter(|_| is_default == 0);
676+
let id = (is_default == 0).then_some(id);
677677

678678
let Ok(private_key) = private_key else {
679679
export_errors += 1;

0 commit comments

Comments
 (0)