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 | |
| 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')
| -rw-r--r-- | src/libstd/sys/common/wtf8.rs | 4 | ||||
| -rw-r--r-- | src/libstd/sys/unix/fs.rs | 2 |
2 files changed, 3 insertions, 3 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); diff --git a/src/libstd/sys/unix/fs.rs b/src/libstd/sys/unix/fs.rs index 71b6214460f..3d490380bfd 100644 --- a/src/libstd/sys/unix/fs.rs +++ b/src/libstd/sys/unix/fs.rs @@ -389,7 +389,7 @@ mod tests { let mut writer = FileDesc::new(writer, true); writer.write(b"test").ok().unwrap(); - let mut buf = [0u8; 4]; + let mut buf = [0; 4]; match reader.read(&mut buf) { Ok(4) => { assert_eq!(buf[0], 't' as u8); |
