mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Fix warnings in unit tests
This commit is contained in:
parent
d55884d73e
commit
96c69f852c
7 changed files with 17 additions and 36 deletions
|
@ -12,7 +12,7 @@ pub fn split_html_space_chars_whitespace() {
|
|||
|
||||
#[test]
|
||||
pub fn test_str_join_empty() {
|
||||
let slice = [] as [&str; 0];
|
||||
let slice: [&str; 0] = [];
|
||||
let actual = str_join(&slice, "-");
|
||||
let expected = "";
|
||||
assert_eq!(actual, expected);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue