From 6a6c367a0c25f86f998fa315ea90c328f685b194 Mon Sep 17 00:00:00 2001 From: JOE1994 Date: Sat, 23 Jan 2021 22:29:54 -0500 Subject: [PATCH] Fix trait bounds in Send/Sync impl: Unordered This commit is a follow-up fix for the issue raised in https://github.com/udoprog/unicycle/issues/8#issuecomment-763780334 . --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 0037eaa..6a12303 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -377,8 +377,8 @@ where _marker: marker::PhantomData, } -unsafe impl Send for Unordered where S: Send + Sentinel {} -unsafe impl Sync for Unordered where S: Sync + Sentinel {} +unsafe impl Send for Unordered where S: Sentinel {} +unsafe impl Sync for Unordered where S: Sentinel {} impl Unpin for Unordered where S: Sentinel {}