From 14d900d8359a2b011e1f90fd54f7ad76b103b459 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Fri, 29 Jan 2021 14:03:27 +0900 Subject: [PATCH] Make iced::Error Send + Sync --- src/error.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/error.rs b/src/error.rs index 31b87d1748..c8fa663678 100644 --- a/src/error.rs +++ b/src/error.rs @@ -9,7 +9,7 @@ pub enum Error { /// The application window could not be created. #[error("the application window could not be created")] - WindowCreationFailed(Box), + WindowCreationFailed(Box), /// A suitable graphics adapter or device could not be found. #[error("a suitable graphics adapter or device could not be found")] @@ -32,3 +32,14 @@ impl From for Error { } } } + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn assert_send_sync() { + fn _assert() {} + _assert::(); + } +}