Fix warnings in unit tests

This commit is contained in:
Matt Brubeck 2016-05-12 09:16:12 -07:00
parent d55884d73e
commit 96c69f852c
7 changed files with 17 additions and 36 deletions

View file

@ -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);