From f6ce65ca31fd8a8db6736a92e5ac62dcf83d4215 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Mon, 7 Apr 2014 23:29:37 -0700 Subject: [PATCH] Update for IO changes --- ssl/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())); }