aboutsummaryrefslogtreecommitdiff
path: root/src/message/signalproxy/rpccall/passwordchange.rs
diff options
context:
space:
mode:
authorMax Audron <me@audron.dev>2026-02-21 17:25:52 +0100
committerMax Audron <me@audron.dev>2026-02-21 17:25:52 +0100
commite63ecc10aa426e3aba416fd05a3f568d719a79a3 (patch)
treee1a8dc6e4197e51ddeb3d631410acec9eda3cf6a /src/message/signalproxy/rpccall/passwordchange.rs
parentuse ProtocolError for From derive (diff)
handshare and signalproxy/rpccall error handling
Diffstat (limited to 'src/message/signalproxy/rpccall/passwordchange.rs')
-rw-r--r--src/message/signalproxy/rpccall/passwordchange.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/message/signalproxy/rpccall/passwordchange.rs b/src/message/signalproxy/rpccall/passwordchange.rs
index 16bf78f..6affc44 100644
--- a/src/message/signalproxy/rpccall/passwordchange.rs
+++ b/src/message/signalproxy/rpccall/passwordchange.rs
@@ -38,10 +38,10 @@ impl RpcCallType for ChangePassword {
Ok((
size,
Self {
- peer: input.remove(0).try_into().unwrap(),
- user: input.remove(0).try_into().unwrap(),
- before: input.remove(0).try_into().unwrap(),
- after: input.remove(0).try_into().unwrap(),
+ peer: input.remove(0).try_into()?,
+ user: input.remove(0).try_into()?,
+ before: input.remove(0).try_into()?,
+ after: input.remove(0).try_into()?,
}
.into(),
))
@@ -79,8 +79,8 @@ impl RpcCallType for PasswordChanged {
Ok((
size,
Self {
- peer: input.remove(0).try_into().unwrap(),
- success: input.remove(0).try_into().unwrap(),
+ peer: input.remove(0).try_into()?,
+ success: input.remove(0).try_into()?,
}
.into(),
))