mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 06:26:30 +03:00
ci: update to Rust 1.75.0 and fix clippy
This commit is contained in:
@@ -447,7 +447,7 @@ mod tests {
|
||||
)?;
|
||||
assert_eq!(sync_items.items.len(), 1);
|
||||
let SyncDataOrUnknown::SyncData(AlterChat { id, action }) =
|
||||
&sync_items.items.get(0).unwrap().data
|
||||
&sync_items.items.first().unwrap().data
|
||||
else {
|
||||
bail!("bad item");
|
||||
};
|
||||
@@ -491,7 +491,7 @@ mod tests {
|
||||
|
||||
assert_eq!(sync_items.items.len(), 1);
|
||||
if let SyncDataOrUnknown::SyncData(AddQrToken(token)) =
|
||||
&sync_items.items.get(0).unwrap().data
|
||||
&sync_items.items.first().unwrap().data
|
||||
{
|
||||
assert_eq!(token.invitenumber, "in");
|
||||
assert_eq!(token.auth, "yip");
|
||||
|
||||
Reference in New Issue
Block a user