aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndor Uhlár <[email protected]>2014-11-26 16:04:10 +0100
committerAndor Uhlár <[email protected]>2014-11-26 16:04:10 +0100
commit762331eb2b8d464bab3b7c27940ce9c1ed233800 (patch)
tree2c5ecbaa182daea3fced586097a64850e9f31ec4
parentBump to 0.1.0 (diff)
downloadrust-openssl-762331eb2b8d464bab3b7c27940ce9c1ed233800.tar.xz
rust-openssl-762331eb2b8d464bab3b7c27940ce9c1ed233800.zip
Sync is now part of the standard library
-rwxr-xr-xopenssl-sys/src/lib.rs3
-rw-r--r--src/lib.rs1
-rw-r--r--src/ssl/mod.rs2
3 files changed, 2 insertions, 4 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs
index 3a92a8d4..50186ae0 100755
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -3,13 +3,12 @@
extern crate libc;
extern crate rustrt;
-extern crate sync;
use libc::{c_void, c_int, c_char, c_ulong, c_long, c_uint, c_uchar, size_t};
use std::mem;
use std::ptr;
use rustrt::mutex::NativeMutex;
-use sync::one::{Once, ONCE_INIT};
+use std::sync::{Once, ONCE_INIT};
pub type ASN1_INTEGER = c_void;
pub type ASN1_STRING = c_void;
diff --git a/src/lib.rs b/src/lib.rs
index 4f5e3e75..c89010ba 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -7,7 +7,6 @@
extern crate libc;
#[cfg(test)]
extern crate serialize;
-extern crate sync;
extern crate "openssl-sys" as ffi;
diff --git a/src/ssl/mod.rs b/src/ssl/mod.rs
index 1985dcd0..c9e33e8e 100644
--- a/src/ssl/mod.rs
+++ b/src/ssl/mod.rs
@@ -2,7 +2,7 @@ use libc::{c_int, c_void, c_long};
use std::io::{IoResult, IoError, EndOfFile, Stream, Reader, Writer};
use std::mem;
use std::ptr;
-use sync::one::{Once, ONCE_INIT};
+use std::sync::{Once, ONCE_INIT};
use bio::{MemBio};
use ffi;