Commit 16b671d7 authored by yiwu-arbug's avatar yiwu-arbug Committed by Yi Wu

Revert "implemented !Send for PerfContext struct (#442)" (#444)

This reverts commit 9abbf010.

As commentted in https://github.com/tikv/rust-rocksdb/pull/442#issuecomment-595001970, `PerfContext` is naturally `!Send` because it contains a raw pointer.

Reverting #442 makes this crate compile on stable Rust.

![image](https://user-images.githubusercontent.com/17217495/75947377-1fa55880-5edb-11ea-8b20-b9e81ad7ac1a.png)
Signed-off-by: 's avatarYilin Chen <sticnarf@gmail.com>
parent 72d4bef6
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
// //
#![feature(optin_builtin_traits)]
extern crate core; extern crate core;
extern crate libc; extern crate libc;
#[macro_use] #[macro_use]
......
...@@ -57,8 +57,6 @@ pub struct PerfContext { ...@@ -57,8 +57,6 @@ pub struct PerfContext {
inner: *mut DBPerfContext, inner: *mut DBPerfContext,
} }
impl !Send for PerfContext {}
impl PerfContext { impl PerfContext {
pub fn get() -> PerfContext { pub fn get() -> PerfContext {
unsafe { unsafe {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment