From a986a9335d591fa5c826157d1674d47aa525357f Mon Sep 17 00:00:00 2001 From: JOE1994 Date: Sat, 23 Jan 2021 23:07:17 -0500 Subject: [PATCH] 'T: Send' to prevent misuse --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 2c600b7..f35c7f0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -50,7 +50,7 @@ pub struct ReadTicket { data: Arc>, } -unsafe impl Send for ReadTicket {} +unsafe impl Send for ReadTicket {} #[cfg(not(feature = "futures"))] impl ReadTicket { @@ -112,7 +112,7 @@ pub struct WriteTicket { data: Arc>, } -unsafe impl Send for WriteTicket {} +unsafe impl Send for WriteTicket {} #[cfg(not(feature = "futures"))] impl WriteTicket {