From e9aa015a96af5a86aac492e6947a91313b4d3e2d Mon Sep 17 00:00:00 2001 From: adamnemecek Date: Thu, 15 Apr 2021 11:57:19 -0700 Subject: [PATCH] [rs] Drops the Sync requrement from UncapturedErrorHandler --- wgpu/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wgpu/src/lib.rs b/wgpu/src/lib.rs index 3ef3f875e1..06382dc3e4 100644 --- a/wgpu/src/lib.rs +++ b/wgpu/src/lib.rs @@ -2917,8 +2917,8 @@ impl SwapChain { } /// Type for the callback of uncaptured error handler -pub trait UncapturedErrorHandler: Fn(Error) + Send + Sync + 'static {} -impl UncapturedErrorHandler for T where T: Fn(Error) + Send + Sync + 'static {} +pub trait UncapturedErrorHandler: Fn(Error) + Send + 'static {} +impl UncapturedErrorHandler for T where T: Fn(Error) + Send + 'static {} /// Error type #[derive(Debug)] @@ -2926,12 +2926,12 @@ pub enum Error { /// Out of memory error OutOfMemoryError { /// - source: Box, + source: Box, }, /// Validation error, signifying a bug in code or data ValidationError { /// - source: Box, + source: Box, /// description: String, },