aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()));
}