aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2014-04-07 23:29:37 -0700
committerSteven Fackler <[email protected]>2014-04-07 23:29:37 -0700
commitf6ce65ca31fd8a8db6736a92e5ac62dcf83d4215 (patch)
treef2551a5164bbc01e43086459df47f35a925168c3
parentUpdate for libc split (diff)
downloadrust-openssl-f6ce65ca31fd8a8db6736a92e5ac62dcf83d4215.tar.xz
rust-openssl-f6ce65ca31fd8a8db6736a92e5ac62dcf83d4215.zip
Update for IO changes
-rw-r--r--ssl/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/tests.rs b/ssl/tests.rs
index a0f1f378..c169927f 100644
--- a/ssl/tests.rs
+++ b/ssl/tests.rs
@@ -157,5 +157,5 @@ fn test_read() {
stream.write("GET /\r\n\r\n".as_bytes()).unwrap();
stream.flush().unwrap();
let buf = stream.read_to_end().ok().expect("read error");
- print!("{}", str::from_utf8(buf));
+ print!("{}", str::from_utf8(buf.as_slice()));
}