matrix_sdk_crypto: Appease clippy

master
Devin Ragotzy 2020-08-22 07:54:36 -04:00
parent 8a71cec81a
commit 72614e4252
2 changed files with 3 additions and 5 deletions

View File

@ -1047,7 +1047,7 @@ impl Room {
}
if max_power > int!(0) {
// `js_int::Int` can overflowed when math is done in `js_int::Int`s
// `js_int::Int` can overflow when math is done in `js_int::Int`s
// use i64 to avoid this
let normalized = {
let pl: i64 = member.power_level.unwrap_or_default().into();

View File

@ -2170,16 +2170,14 @@ pub(crate) mod test {
let mut event = alice
.outgoing_to_device_requests()
.iter()
.next()
.first()
.map(|r| outgoing_request_to_event(alice.user_id(), r))
.unwrap();
bob.handle_verification_event(&mut event).await;
let mut event = bob
.outgoing_to_device_requests()
.iter()
.next()
.first()
.map(|r| outgoing_request_to_event(bob.user_id(), r))
.unwrap();
alice.handle_verification_event(&mut event).await;