summaryrefslogtreecommitdiff
path: root/crates/tor-rpcbase/src/dispatch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/tor-rpcbase/src/dispatch.rs')
-rw-r--r--crates/tor-rpcbase/src/dispatch.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/tor-rpcbase/src/dispatch.rs b/crates/tor-rpcbase/src/dispatch.rs
index c8fb94957..878ae3d4a 100644
--- a/crates/tor-rpcbase/src/dispatch.rs
+++ b/crates/tor-rpcbase/src/dispatch.rs
@@ -312,7 +312,7 @@ pub struct InvokerEnt {
///
/// Always present.
#[doc(hidden)]
- pub invoker: &'static (dyn Invocable),
+ pub invoker: &'static dyn Invocable,
/// The same function as `invoker`, but only if that function implements
/// `RpcInvocable`
@@ -320,7 +320,7 @@ pub struct InvokerEnt {
/// This will be `None` if this is a "special" method--that is, one whose inputs and outputs are not serializable,
/// and which is therefore not invocable directly from an RPC connection.
#[doc(hidden)]
- pub rpc_invoker: Option<&'static (dyn RpcInvocable)>,
+ pub rpc_invoker: Option<&'static dyn RpcInvocable>,
// These fields are used to make sure that we aren't installing different
// functions for the same (Object, Method) pair.