diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2015-03-03 10:42:26 +0200 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-05 12:38:33 +0530 |
| commit | e64670888a2839ba75237b1934c440c4c319b1bb (patch) | |
| tree | 20e71f3ff12cd8ffd7ddf5cbc7cba29f8149d6df /src/libstd/sys/common/wtf8.rs | |
| parent | 68740b405404a3f885e388c8d31722797d519c30 (diff) | |
| download | rust-e64670888a2839ba75237b1934c440c4c319b1bb.tar.gz rust-e64670888a2839ba75237b1934c440c4c319b1bb.zip | |
Remove integer suffixes where the types in compiled code are identical.
Diffstat (limited to 'src/libstd/sys/common/wtf8.rs')
| -rw-r--r-- | src/libstd/sys/common/wtf8.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys/common/wtf8.rs b/src/libstd/sys/common/wtf8.rs index 31bdaee1e34..719c74179ac 100644 --- a/src/libstd/sys/common/wtf8.rs +++ b/src/libstd/sys/common/wtf8.rs @@ -714,7 +714,7 @@ pub fn is_code_point_boundary(slice: &Wtf8, index: uint) -> bool { if index == slice.len() { return true; } match slice.bytes.get(index) { None => false, - Some(&b) => b < 128u8 || b >= 192u8, + Some(&b) => b < 128 || b >= 192, } } @@ -776,7 +776,7 @@ impl<'a> Iterator for EncodeWide<'a> { return Some(tmp); } - let mut buf = [0u16; 2]; + let mut buf = [0; 2]; self.code_points.next().map(|code_point| { let n = encode_utf16_raw(code_point.value, &mut buf) .unwrap_or(0); |
