crypto: Clippy warnings.
parent
55436c6514
commit
b119b30939
|
@ -92,12 +92,9 @@ impl VerificationRequest {
|
||||||
pub fn mark_as_sent(&self, response: &RoomMessageResponse) {
|
pub fn mark_as_sent(&self, response: &RoomMessageResponse) {
|
||||||
let mut inner = self.inner.lock().unwrap();
|
let mut inner = self.inner.lock().unwrap();
|
||||||
|
|
||||||
match &*inner {
|
if let InnerRequest::Created(c) = &*inner {
|
||||||
InnerRequest::Created(c) => {
|
|
||||||
*inner = InnerRequest::Sent(c.clone().into_sent(response));
|
*inner = InnerRequest::Sent(c.clone().into_sent(response));
|
||||||
}
|
}
|
||||||
_ => (),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn from_request_event(
|
pub(crate) fn from_request_event(
|
||||||
|
@ -144,12 +141,9 @@ impl VerificationRequest {
|
||||||
) -> Result<(), ()> {
|
) -> Result<(), ()> {
|
||||||
let mut inner = self.inner.lock().unwrap();
|
let mut inner = self.inner.lock().unwrap();
|
||||||
|
|
||||||
match &*inner {
|
if let InnerRequest::Sent(s) = &*inner {
|
||||||
InnerRequest::Sent(s) => {
|
|
||||||
*inner = InnerRequest::Ready(s.clone().into_ready(sender, content));
|
*inner = InnerRequest::Ready(s.clone().into_ready(sender, content));
|
||||||
}
|
}
|
||||||
_ => (),
|
|
||||||
}
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue