diff options
| author | Adolfo OchagavĂa <aochagavia92@gmail.com> | 2014-06-30 16:41:30 +0200 |
|---|---|---|
| committer | Adolfo OchagavĂa <aochagavia92@gmail.com> | 2014-07-15 19:55:17 +0200 |
| commit | 211f1caa290d83a3e24ad99d53395975a3981014 (patch) | |
| tree | 717e8a9d5debccefacc275fdd28f6a292a5737be /src/libregex | |
| parent | 1704ebb798bd55a782b80ae6741c5d11403aaf13 (diff) | |
Deprecate `str::from_utf8_owned`
Use `String::from_utf8` instead [breaking-change]
Diffstat (limited to 'src/libregex')
| -rw-r--r-- | src/libregex/test/bench.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libregex/test/bench.rs b/src/libregex/test/bench.rs index 0e4581a401e..98887e5357d 100644 --- a/src/libregex/test/bench.rs +++ b/src/libregex/test/bench.rs @@ -163,7 +163,7 @@ fn gen_text(n: uint) -> String { *b = '\n' as u8 } } - str::from_utf8(bytes.as_slice()).unwrap().to_string() + String::from_utf8(bytes).unwrap() } throughput!(easy0_32, easy0(), 32) |
