matrix_sdk_crypto: Appease clippy
parent
8a71cec81a
commit
72614e4252
|
@ -1047,7 +1047,7 @@ impl Room {
|
||||||
}
|
}
|
||||||
|
|
||||||
if max_power > int!(0) {
|
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
|
// use i64 to avoid this
|
||||||
let normalized = {
|
let normalized = {
|
||||||
let pl: i64 = member.power_level.unwrap_or_default().into();
|
let pl: i64 = member.power_level.unwrap_or_default().into();
|
||||||
|
|
|
@ -2170,16 +2170,14 @@ pub(crate) mod test {
|
||||||
|
|
||||||
let mut event = alice
|
let mut event = alice
|
||||||
.outgoing_to_device_requests()
|
.outgoing_to_device_requests()
|
||||||
.iter()
|
.first()
|
||||||
.next()
|
|
||||||
.map(|r| outgoing_request_to_event(alice.user_id(), r))
|
.map(|r| outgoing_request_to_event(alice.user_id(), r))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
bob.handle_verification_event(&mut event).await;
|
bob.handle_verification_event(&mut event).await;
|
||||||
|
|
||||||
let mut event = bob
|
let mut event = bob
|
||||||
.outgoing_to_device_requests()
|
.outgoing_to_device_requests()
|
||||||
.iter()
|
.first()
|
||||||
.next()
|
|
||||||
.map(|r| outgoing_request_to_event(bob.user_id(), r))
|
.map(|r| outgoing_request_to_event(bob.user_id(), r))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
alice.handle_verification_event(&mut event).await;
|
alice.handle_verification_event(&mut event).await;
|
||||||
|
|
Loading…
Reference in New Issue