aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2014-11-24 13:09:16 -0800
committerSteven Fackler <[email protected]>2014-11-24 13:09:16 -0800
commitf71555e8207fef6ba6f6090078309ca9bbe3a51d (patch)
tree47a16f78e8f2cc8269b8b65b0a8abe3dd9495bc8 /src
parentMerge pull request #104 from jmesmon/sys (diff)
downloadrust-openssl-f71555e8207fef6ba6f6090078309ca9bbe3a51d.tar.xz
rust-openssl-f71555e8207fef6ba6f6090078309ca9bbe3a51d.zip
Fix deprecation warning
Diffstat (limited to 'src')
-rw-r--r--src/ssl/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ssl/mod.rs b/src/ssl/mod.rs
index 8e035466..245e401e 100644
--- a/src/ssl/mod.rs
+++ b/src/ssl/mod.rs
@@ -2,7 +2,6 @@ use libc::{c_int, c_void, c_long};
use std::io::{IoResult, IoError, EndOfFile, Stream, Reader, Writer};
use std::mem;
use std::ptr;
-use std::string;
use sync::one::{Once, ONCE_INIT};
use bio::{MemBio};
@@ -479,7 +478,7 @@ impl<S: Stream> SslStream<S> {
}
let meth = unsafe { ffi::SSL_COMP_get_name(ptr) };
- let s = unsafe { string::raw::from_buf(meth as *const u8) };
+ let s = unsafe { String::from_raw_buf(meth as *const u8) };
Some(s)
}