about summary refs log tree commit diff
path: root/src/libstd/uvtmp.rs
diff options
context:
space:
mode:
authorKevin Cantu <me@kevincantu.org>2012-01-25 00:53:17 -0800
committerKevin Cantu <me@kevincantu.org>2012-01-25 00:53:17 -0800
commitc7b23f9a86fcdf328ebb349d9a5ad4e4c7dfe6ce (patch)
tree96ba7443233c718f89e2ebaa5a673882ca7c2c33 /src/libstd/uvtmp.rs
parent9750e83a17a8f9f865eae757dcdccf374b1c82b7 (diff)
downloadrust-c7b23f9a86fcdf328ebb349d9a5ad4e4c7dfe6ce.tar.gz
rust-c7b23f9a86fcdf328ebb349d9a5ad4e4c7dfe6ce.zip
Replacing str::unsafe_from_bytes with str::from_bytes (part 1)
Diffstat (limited to 'src/libstd/uvtmp.rs')
-rw-r--r--src/libstd/uvtmp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/uvtmp.rs b/src/libstd/uvtmp.rs
index e2059890511..d92a42d2c5e 100644
--- a/src/libstd/uvtmp.rs
+++ b/src/libstd/uvtmp.rs
@@ -131,7 +131,7 @@ fn test_http() {
                     unsafe {
                         log(error, len);
                         let buf = vec::unsafe::from_buf(buf, len as uint);
-                        let str = str::unsafe_from_bytes(buf);
+                        let str = str::from_bytes(buf);
                         #error("read something");
                         io::println(str);
                     }
@@ -146,4 +146,4 @@ fn test_http() {
     }
     join_thread(thread);
     delete_thread(thread);
-}
\ No newline at end of file
+}