From 0bae121e1268565eb29e90e68b8c5e98ab1fe979 Mon Sep 17 00:00:00 2001 From: Paul Florence Date: Fri, 10 Nov 2017 10:05:52 -0500 Subject: Added a macro that wraps foreign type, and impl Send and Sync for both, the borrowed type and the owned one. Replaced all invocation of `foreign_type` by `foreign_type_and_impl_send_sync`. --- openssl/src/string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openssl/src/string.rs') diff --git a/openssl/src/string.rs b/openssl/src/string.rs index 0324d577..af58130e 100644 --- a/openssl/src/string.rs +++ b/openssl/src/string.rs @@ -8,7 +8,7 @@ use std::str; use stack::Stackable; -foreign_type! { +foreign_type_and_impl_send_sync! { type CType = c_char; fn drop = free; -- cgit v1.2.3