diff --git a/plugins/src/lib.rs b/plugins/src/lib.rs index c3d58bcd6470..1db632caa0cf 100644 --- a/plugins/src/lib.rs +++ b/plugins/src/lib.rs @@ -104,7 +104,7 @@ where impl Builder where O: Send + AsyncWrite + Unpin + 'static, - S: Clone + Sync + Send + Clone + 'static, + S: Clone + Sync + Send + 'static, I: AsyncRead + Send + Unpin + 'static, { pub fn new(input: I, output: O) -> Self { @@ -146,7 +146,7 @@ where where C: Send + Sync + 'static, C: Fn(Plugin, Request) -> F + 'static, - F: Future> + Send + Sync + 'static, + F: Future> + Send + 'static, { self.subscriptions.insert( topic.to_string(), @@ -162,7 +162,7 @@ where where C: Send + Sync + 'static, C: Fn(Plugin, Request) -> F + 'static, - F: Future + Send + Sync + 'static, + F: Future + Send + 'static, { self.hooks.insert( hookname.to_string(), @@ -179,7 +179,7 @@ where where C: Send + Sync + 'static, C: Fn(Plugin, Request) -> F + 'static, - F: Future + Send + Sync + 'static, + F: Future + Send + 'static, { self.rpcmethods.insert( name.to_string(), @@ -504,7 +504,7 @@ where impl PluginDriver where - S: Send + Clone + Sync, + S: Send + Clone, { /// Run the plugin until we get a shutdown command. async fn run(