diff options
| author | nham <hamann.nick@gmail.com> | 2014-08-06 00:57:49 -0400 |
|---|---|---|
| committer | nham <hamann.nick@gmail.com> | 2014-08-06 00:57:49 -0400 |
| commit | f36ddf1d0e033ba0a104f5cf1ea0ebeaa741de12 (patch) | |
| tree | 3cfd6a926ba7ebb0f387de1a3be05c92ca376fe8 /src/libcollections/string.rs | |
| parent | f5ac41185a821681f4bfaf93ef0569955d24ef4a (diff) | |
| download | rust-f36ddf1d0e033ba0a104f5cf1ea0ebeaa741de12.tar.gz rust-f36ddf1d0e033ba0a104f5cf1ea0ebeaa741de12.zip | |
Use byte literals in libcollections tests
Diffstat (limited to 'src/libcollections/string.rs')
| -rw-r--r-- | src/libcollections/string.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index 684a15f9aae..9465fea6dcb 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -1040,7 +1040,7 @@ mod tests { fn test_push_bytes() { let mut s = String::from_str("ABC"); unsafe { - s.push_bytes([ 'D' as u8 ]); + s.push_bytes([b'D']); } assert_eq!(s.as_slice(), "ABCD"); } |
