ci: update to Rust 1.75.0 and fix clippy

This commit is contained in:
link2xt
2024-01-08 20:01:40 +00:00
parent b9a58bf625
commit 2f8a8f9f50
13 changed files with 31 additions and 27 deletions

View File

@@ -638,7 +638,7 @@ mod tests {
let self_chat = ctx1.get_self_chat().await;
let msgs = get_chat_msgs(&ctx1, self_chat.id).await.unwrap();
assert_eq!(msgs.len(), 2);
let msgid = match msgs.get(0).unwrap() {
let msgid = match msgs.first().unwrap() {
ChatItem::Message { msg_id } => msg_id,
_ => panic!("wrong chat item"),
};