mirror of
https://github.com/servo/servo.git
synced 2025-08-12 17:05:33 +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
|
@ -10,7 +10,3 @@ doctest = false
|
|||
|
||||
[dependencies]
|
||||
util = {path = "../../../components/util"}
|
||||
plugins = {path = "../../../components/plugins"}
|
||||
app_units = {version = "0.2.3", features = ["plugins"]}
|
||||
euclid = {version = "0.6.4", features = ["plugins"]}
|
||||
libc = "0.2"
|
||||
|
|
|
@ -2,18 +2,12 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#![cfg_attr(test, feature(plugin, custom_derive))]
|
||||
#![cfg_attr(test, plugin(plugins))]
|
||||
#![feature(alloc)]
|
||||
#![cfg(test)]
|
||||
|
||||
extern crate alloc;
|
||||
extern crate app_units;
|
||||
extern crate euclid;
|
||||
extern crate libc;
|
||||
extern crate util;
|
||||
|
||||
#[cfg(test)] mod cache;
|
||||
#[cfg(test)] mod opts;
|
||||
#[cfg(test)] mod str;
|
||||
#[cfg(test)] mod thread;
|
||||
#[cfg(test)] mod prefs;
|
||||
mod cache;
|
||||
mod opts;
|
||||
mod prefs;
|
||||
mod str;
|
||||
mod thread;
|
||||
|
|
|
@ -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