matrix_sdk_crypto: Appease clippy
parent
8a71cec81a
commit
72614e4252
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue