about summary refs log tree commit diff
path: root/src/libcollections/string.rs
diff options
context:
space:
mode:
authorTed Horst <ted.horst@earthlink.net>2014-07-21 00:43:08 -0500
committerAlex Crichton <alex@alexcrichton.com>2014-07-21 09:55:02 -0700
commitdfacef532d61b1ab3cefb4164faa77b290f9abc5 (patch)
tree08a54b8bf53fc3bb63f0fa42ce61558ed88935ce /src/libcollections/string.rs
parent6807349e8fe37eb19dd6d9c41fb24430fdf0e54b (diff)
downloadrust-dfacef532d61b1ab3cefb4164faa77b290f9abc5.tar.gz
rust-dfacef532d61b1ab3cefb4164faa77b290f9abc5.zip
fix string in from_utf8_lossy_100_multibyte benchmark
Diffstat (limited to 'src/libcollections/string.rs')
-rw-r--r--src/libcollections/string.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs
index 5450f2d7c31..d33bd4d04bd 100644
--- a/src/libcollections/string.rs
+++ b/src/libcollections/string.rs
@@ -856,8 +856,7 @@ mod tests {
 
     #[bench]
     fn from_utf8_lossy_100_multibyte(b: &mut Bencher) {
-        let s = "𐌀𐌖𐌋𐌄𐌑𐌉ปรدولة\
-            الكويتทศไทย中华𐍅𐌿𐌻𐍆𐌹𐌻𐌰".as_bytes();
+        let s = "𐌀𐌖𐌋𐌄𐌑𐌉ปรدولة الكويتทศไทย中华𐍅𐌿𐌻𐍆𐌹𐌻𐌰".as_bytes();
         assert_eq!(100, s.len());
         b.iter(|| {
             let _ = String::from_utf8_lossy(s);