about summary refs log tree commit diff
path: root/src/libunicode
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2014-12-30 21:19:41 +1300
committerNick Cameron <ncameron@mozilla.com>2015-01-02 10:28:19 +1300
commit7e2b9ea235c2bf4cc9a7575c8e0f70950208b8f2 (patch)
tree6a5a44169970430b93c4d57e782b4f8bde45a5cf /src/libunicode
parent57a74eda8811bb04da2e081e3029aeec2f0bdcf4 (diff)
Fallout - change array syntax to use `;`
Diffstat (limited to 'src/libunicode')
-rw-r--r--src/libunicode/u_str.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libunicode/u_str.rs b/src/libunicode/u_str.rs
index 398728bb516..9b473ea5f54 100644
--- a/src/libunicode/u_str.rs
+++ b/src/libunicode/u_str.rs
@@ -353,7 +353,7 @@ impl<'a> DoubleEndedIterator<&'a str> for Graphemes<'a> {
 }
 
 // https://tools.ietf.org/html/rfc3629
-static UTF8_CHAR_WIDTH: [u8, ..256] = [
+static UTF8_CHAR_WIDTH: [u8; 256] = [
 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, // 0x1F
 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
@@ -519,7 +519,7 @@ impl<I> Iterator<u16> for Utf16Encoder<I> where I: Iterator<char> {
             return Some(tmp);
         }
 
-        let mut buf = [0u16, ..2];
+        let mut buf = [0u16; 2];
         self.chars.next().map(|ch| {
             let n = ch.encode_utf16(buf.as_mut_slice()).unwrap_or(0);
             if n == 2 { self.extra = buf[1]; }