From 28ab91f46a0d91aaf2710835d1a818673bffe993 Mon Sep 17 00:00:00 2001 From: famfo Date: Fri, 26 Jan 2024 12:28:59 +0100 Subject: [PATCH] Add Sync to ServerConnectError --- tokio-xmpp/src/connect.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio-xmpp/src/connect.rs b/tokio-xmpp/src/connect.rs index 2358aba0..79f79de3 100644 --- a/tokio-xmpp/src/connect.rs +++ b/tokio-xmpp/src/connect.rs @@ -11,7 +11,7 @@ pub trait AsyncReadAndWrite: AsyncRead + AsyncWrite + Unpin + Send {} impl AsyncReadAndWrite for T {} /// Trait that must be extended by the implementation of ServerConnector -pub trait ServerConnectorError: std::error::Error + Send {} +pub trait ServerConnectorError: std::error::Error + Sync + Send {} /// Trait called to connect to an XMPP server, perhaps called multiple times pub trait ServerConnector: Clone + core::fmt::Debug + Send + Unpin + 'static {