mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
clippy: fix warnings on modules outside components (#31567)
This commit is contained in:
parent
3b19189896
commit
6c7fe31db1
9 changed files with 37 additions and 46 deletions
|
@ -17,7 +17,7 @@ pub fn split_html_space_chars_whitespace() {
|
|||
#[test]
|
||||
pub fn test_str_join_empty() {
|
||||
let slice: [&str; 0] = [];
|
||||
let actual = str_join(&slice, "-");
|
||||
let actual = str_join(slice, "-");
|
||||
let expected = "";
|
||||
assert_eq!(actual, expected);
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ pub fn test_str_join_empty() {
|
|||
#[test]
|
||||
pub fn test_str_join_one() {
|
||||
let slice = ["alpha"];
|
||||
let actual = str_join(&slice, "-");
|
||||
let actual = str_join(slice, "-");
|
||||
let expected = "alpha";
|
||||
assert_eq!(actual, expected);
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ pub fn test_str_join_one() {
|
|||
#[test]
|
||||
pub fn test_str_join_many() {
|
||||
let slice = ["", "alpha", "", "beta", "gamma", ""];
|
||||
let actual = str_join(&slice, "-");
|
||||
let actual = str_join(slice, "-");
|
||||
let expected = "-alpha--beta-gamma-";
|
||||
assert_eq!(actual, expected);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue