crypto: Clippy fixes for our tests.
This commit is contained in:
parent
a2a87b9fff
commit
5bebe1d434
4 changed files with 9 additions and 9 deletions
|
@ -292,8 +292,8 @@ mod test {
|
|||
|
||||
let user_devices = store.user_devices(device.user_id());
|
||||
|
||||
assert_eq!(user_devices.keys().nth(0).unwrap(), device.device_id());
|
||||
assert_eq!(user_devices.devices().nth(0).unwrap(), &device);
|
||||
assert_eq!(user_devices.keys().next().unwrap(), device.device_id());
|
||||
assert_eq!(user_devices.devices().next().unwrap(), &device);
|
||||
|
||||
let loaded_device = user_devices.get(device.device_id()).unwrap();
|
||||
|
||||
|
|
|
@ -1066,7 +1066,7 @@ pub(crate) mod test {
|
|||
.await
|
||||
.curve25519()
|
||||
.iter()
|
||||
.nth(0)
|
||||
.next()
|
||||
.unwrap()
|
||||
.1
|
||||
.to_owned();
|
||||
|
@ -1143,7 +1143,7 @@ pub(crate) mod test {
|
|||
let one_time_key = one_time_keys
|
||||
.curve25519()
|
||||
.iter()
|
||||
.nth(0)
|
||||
.next()
|
||||
.unwrap()
|
||||
.1
|
||||
.to_owned();
|
||||
|
|
|
@ -200,8 +200,8 @@ mod test {
|
|||
|
||||
let user_devices = store.get_user_devices(device.user_id()).await.unwrap();
|
||||
|
||||
assert_eq!(user_devices.keys().nth(0).unwrap(), device.device_id());
|
||||
assert_eq!(user_devices.devices().nth(0).unwrap(), &device);
|
||||
assert_eq!(user_devices.keys().next().unwrap(), device.device_id());
|
||||
assert_eq!(user_devices.devices().next().unwrap(), &device);
|
||||
|
||||
let loaded_device = user_devices.get(device.device_id()).unwrap();
|
||||
|
||||
|
|
|
@ -866,7 +866,7 @@ mod test {
|
|||
.await
|
||||
.curve25519()
|
||||
.iter()
|
||||
.nth(0)
|
||||
.next()
|
||||
.unwrap()
|
||||
.1
|
||||
.to_owned();
|
||||
|
@ -1165,8 +1165,8 @@ mod test {
|
|||
assert_eq!(device.keys(), loaded_device.keys());
|
||||
|
||||
let user_devices = store.get_user_devices(device.user_id()).await.unwrap();
|
||||
assert_eq!(user_devices.keys().nth(0).unwrap(), device.device_id());
|
||||
assert_eq!(user_devices.devices().nth(0).unwrap(), &device);
|
||||
assert_eq!(user_devices.keys().next().unwrap(), device.device_id());
|
||||
assert_eq!(user_devices.devices().next().unwrap(), &device);
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
|
|
Loading…
Reference in a new issue