From 374ad206d53c19d4be5636564d9010d9756497be Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sat, 15 Jul 2017 21:53:49 -0700 Subject: Use foreign-type's Opaque --- openssl/src/util.rs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'openssl/src/util.rs') diff --git a/openssl/src/util.rs b/openssl/src/util.rs index 58abd9ec..1093b491 100644 --- a/openssl/src/util.rs +++ b/openssl/src/util.rs @@ -91,8 +91,3 @@ where } } } - -/// This is intended to be used as the inner type for `FooRef` types converted from raw C pointers. -/// It has an `UnsafeCell` internally to inform the compiler about aliasability and doesn't -/// implement `Copy`, so it can't be dereferenced. -pub struct Opaque(UnsafeCell<()>); -- cgit v1.2.3