Use byte literals in libcollections tests
This commit is contained in:
parent
f5ac41185a
commit
f36ddf1d0e
2 changed files with 7 additions and 7 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue