From c232b5c108257329c7e4d4b58d72c4783619098c Mon Sep 17 00:00:00 2001 From: Victor Berger Date: Wed, 29 Dec 2021 16:07:58 +0100 Subject: [PATCH] backend: Make SwapBuffersError Send+Sync This makes using anyhow with Smithay easier. --- src/backend/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/mod.rs b/src/backend/mod.rs index dd0c9ca..2f3d57f 100644 --- a/src/backend/mod.rs +++ b/src/backend/mod.rs @@ -115,7 +115,7 @@ pub enum SwapBuffersError { /// Operations will have no effect. Functions that read textures, buffers, etc. /// will return uninitialized data instead. #[error("The context has been lost, it needs to be recreated: {0}")] - ContextLost(Box), + ContextLost(Box), /// A temporary condition caused to rendering to fail. /// /// Depending on the underlying error this *might* require fixing internal state of the rendering backend, @@ -126,5 +126,5 @@ pub enum SwapBuffersError { /// If the root cause cannot be discovered and subsequent renderings also fail, it is advised to fallback to /// recreation. #[error("A temporary condition caused the page flip to fail: {0}")] - TemporaryFailure(Box), + TemporaryFailure(Box), }