From 58b72f9b0cb277e949dea315f6bcc38c2181ab60 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 20 Jan 2022 08:36:47 +0100 Subject: [PATCH] Make sure Error implements Send and Sync --- src/error.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/error.rs b/src/error.rs index 45b1f4d..fff0b0d 100644 --- a/src/error.rs +++ b/src/error.rs @@ -14,8 +14,8 @@ use crate::response::ResponseStatus; pub enum Error { Io(std::io::Error), Command(ResponseStatus), - Xml(Box), - Other(Box), + Xml(Box), + Other(Box), } impl StdError for Error {} @@ -33,8 +33,8 @@ impl Display for Error { } } -impl From> for Error { - fn from(e: Box) -> Self { +impl From> for Error { + fn from(e: Box) -> Self { Self::Other(e) } }