aboutsummaryrefslogtreecommitdiff
path: root/src/message/signalproxy/rpccall/identity.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/identity.rs
parentuse ProtocolError for From derive (diff)
handshare and signalproxy/rpccall error handling
Diffstat (limited to 'src/message/signalproxy/rpccall/identity.rs')
-rw-r--r--src/message/signalproxy/rpccall/identity.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/message/signalproxy/rpccall/identity.rs b/src/message/signalproxy/rpccall/identity.rs
index 15beec4..8927f1c 100644
--- a/src/message/signalproxy/rpccall/identity.rs
+++ b/src/message/signalproxy/rpccall/identity.rs
@@ -34,8 +34,8 @@ impl RpcCallType for CreateIdentity {
Ok((
size,
CreateIdentity {
- identity: input.remove(0).try_into().unwrap(),
- additional: input.remove(0).try_into().unwrap(),
+ identity: input.remove(0).try_into()?,
+ additional: input.remove(0).try_into()?,
}
.into(),
))
@@ -68,7 +68,7 @@ impl RpcCallType for RemoveIdentity {
Ok((
size,
Self {
- identity_id: input.remove(0).try_into().unwrap(),
+ identity_id: input.remove(0).try_into()?,
}
.into(),
))
@@ -101,7 +101,7 @@ impl RpcCallType for IdentityCreated {
Ok((
size,
IdentityCreated {
- identity: input.remove(0).try_into().unwrap(),
+ identity: input.remove(0).try_into()?,
}
.into(),
))
@@ -134,7 +134,7 @@ impl RpcCallType for IdentityRemoved {
Ok((
size,
Self {
- identity_id: input.remove(0).try_into().unwrap(),
+ identity_id: input.remove(0).try_into()?,
}
.into(),
))