diff options
Diffstat (limited to 'crates/tor-rpcbase')
| -rw-r--r-- | crates/tor-rpcbase/src/dispatch.rs | 4 | ||||
| -rw-r--r-- | crates/tor-rpcbase/src/lib.rs | 1 |
2 files changed, 3 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. diff --git a/crates/tor-rpcbase/src/lib.rs b/crates/tor-rpcbase/src/lib.rs index fe07e8708..89896ef58 100644 --- a/crates/tor-rpcbase/src/lib.rs +++ b/crates/tor-rpcbase/src/lib.rs @@ -41,6 +41,7 @@ #![allow(clippy::result_large_err)] // temporary workaround for arti#587 #![allow(clippy::needless_raw_string_hashes)] // complained-about code is fine, often best #![allow(clippy::needless_lifetimes)] // See arti#1765 +#![allow(mismatched_lifetime_syntaxes)] // temporary workaround for arti#2060 //! <!-- @@ end lint list maintained by maint/add_warning @@ --> pub mod dispatch; |
