librand: Remove all uses of ~str from librand

This commit is contained in:
Patrick Walton
2014-05-13 14:38:13 -07:00
parent 6415d06616
commit 7abf6f1346
3 changed files with 6 additions and 6 deletions

View File

@@ -159,7 +159,7 @@ fn gen_text(n: uint) -> StrBuf {
*b = '\n' as u8
}
}
str::from_utf8(bytes).unwrap().to_strbuf()
str::from_utf8(bytes.as_slice()).unwrap().to_strbuf()
}
throughput!(easy0_32, easy0(), 32)