Skip to content

Commit e53acc5

Browse files
committed
format
1 parent 6edf650 commit e53acc5

File tree

1 file changed

+27
-21
lines changed

1 file changed

+27
-21
lines changed

rust/src/client_api/client_events.rs

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -598,28 +598,34 @@ impl Display for ClientRequest<'_> {
598598
write!(f, "ContractRequest::Subscribe for `{key}`")
599599
}
600600
},
601-
ClientRequest::DelegateOp(op) => match op {
602-
DelegateRequest::ApplicationMessages { key, inbound, .. } => {
603-
write!(
604-
f,
605-
"DelegateRequest::ApplicationMessages for `{key}` with {} messages",
606-
inbound.len()
607-
)
608-
}
609-
DelegateRequest::GetSecretRequest {
610-
get_request: GetSecretRequest { key: secret_id, .. },
611-
key,
612-
..
613-
} => {
614-
write!(f, "DelegateRequest::GetSecretRequest secret_id `{secret_id}` for key `{key}`")
615-
}
616-
DelegateRequest::RegisterDelegate { delegate, .. } => {
617-
write!(f, "DelegateRequest::RegisterDelegate for delegate.key()=`{}`", delegate.key())
618-
}
619-
DelegateRequest::UnregisterDelegate(key) => {
620-
write!(f, "DelegateRequest::UnregisterDelegate for key `{key}`")
601+
ClientRequest::DelegateOp(op) => {
602+
match op {
603+
DelegateRequest::ApplicationMessages { key, inbound, .. } => {
604+
write!(
605+
f,
606+
"DelegateRequest::ApplicationMessages for `{key}` with {} messages",
607+
inbound.len()
608+
)
609+
}
610+
DelegateRequest::GetSecretRequest {
611+
get_request: GetSecretRequest { key: secret_id, .. },
612+
key,
613+
..
614+
} => {
615+
write!(f, "DelegateRequest::GetSecretRequest secret_id `{secret_id}` for key `{key}`")
616+
}
617+
DelegateRequest::RegisterDelegate { delegate, .. } => {
618+
write!(
619+
f,
620+
"DelegateRequest::RegisterDelegate for delegate.key()=`{}`",
621+
delegate.key()
622+
)
623+
}
624+
DelegateRequest::UnregisterDelegate(key) => {
625+
write!(f, "DelegateRequest::UnregisterDelegate for key `{key}`")
626+
}
621627
}
622-
},
628+
}
623629
ClientRequest::Disconnect { .. } => write!(f, "client disconnected"),
624630
ClientRequest::Authenticate { .. } => write!(f, "authenticate"),
625631
ClientRequest::NodeQueries(query) => write!(f, "node queries: {:?}", query),

0 commit comments

Comments
 (0)