Skip to content

Commit 938ec92

Browse files
committed
cargo fmt
Fix formatting typos
1 parent e868d2a commit 938ec92

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

rcdom/tests/html-tree-builder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ fn make_test_desc_with_scripting_flag(
208208
name.push_str(" (scripting disabled)");
209209
};
210210

211-
Test{
211+
Test {
212212
name,
213213
skip,
214214
test: Box::new(move || {

rcdom/tests/util/runner.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88
// except according to those terms.
99

1010
/// Simple container for storing tests for later execution
11-
pub struct Test {
12-
pub name: String,
13-
pub skip: bool,
14-
pub test: Box<dyn Fn()>,
11+
pub struct Test {
12+
pub name: String,
13+
pub skip: bool,
14+
pub test: Box<dyn Fn()>,
1515
}
1616

17-
1817
impl Test {
1918
/// Invoke the stored test function
2019
///

rcdom/tests/xml-tokenizer.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -280,12 +280,7 @@ fn json_to_tokens(js: &Value, exact_errors: bool) -> Vec<Token> {
280280
sink.get_tokens()
281281
}
282282

283-
fn mk_xml_test(
284-
name: String,
285-
input: String,
286-
expect: Value,
287-
opts: XmlTokenizerOpts,
288-
) -> Test {
283+
fn mk_xml_test(name: String, input: String, expect: Value, opts: XmlTokenizerOpts) -> Test {
289284
Test {
290285
name,
291286
skip: false,

rcdom/tests/xml-tree-builder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ fn make_xml_test(
178178
tests.push(Test {
179179
name,
180180
skip,
181-
test : Box::new(move || {
181+
test: Box::new(move || {
182182
let mut result = String::new();
183183

184184
let dom = parse_document(RcDom::default(), Default::default()).one(data.clone());

0 commit comments

Comments
 (0)