Skip to content

Commit a6d94b9

Browse files
committed
Update tests
1 parent 8b53d78 commit a6d94b9

File tree

5 files changed

+26
-25
lines changed

5 files changed

+26
-25
lines changed

tests/target/chains-visual.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,24 @@ fn main() {
2828
});
2929

3030
some_fuuuuuuuuunction().method_call_a(aaaaa, bbbbb, |c| {
31-
let x = c;
32-
x
33-
})
31+
let x = c;
32+
x
33+
})
3434
.method_call_b(aaaaa, bbbbb, |c| {
35-
let x = c;
36-
x
37-
});
35+
let x = c;
36+
x
37+
});
3838

3939
fffffffffffffffffffffffffffffffffff(a, {
4040
SCRIPT_TASK_ROOT.with(|root| {
4141
*root.borrow_mut() = Some(&script_task);
4242
});
4343
});
4444

45-
let suuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuum = xxxxxxx.map(|x| x + 5)
46-
.map(|x| x / 2)
47-
.fold(0,
48-
|acc, x| acc + x);
45+
let suuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuum =
46+
xxxxxxx.map(|x| x + 5)
47+
.map(|x| x / 2)
48+
.fold(0, |acc, x| acc + x);
4949

5050
aaaaaaaaaaaaaaaa.map(|x| {
5151
x += 1;

tests/target/configs-fn_call_indent-block.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ fn main() {
1313
"elit",
1414
);
1515
// #1501
16-
let hyper = Arc::new(Client::with_connector(
17-
HttpsConnector::new(TlsClient::new()),
18-
));
16+
let hyper = Arc::new(Client::with_connector(HttpsConnector::new(
17+
TlsClient::new(),
18+
)));
1919

2020
// chain
2121
let x = yooooooooooooo

tests/target/issue-913.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ mod client {
1010
};
1111

1212
let next_state = match self.state {
13-
State::V5(
14-
v5::State::Command(v5::comand::State::WriteVersion(ref mut response)),
15-
) => {
13+
State::V5(v5::State::Command(v5::comand::State::WriteVersion(
14+
ref mut response,
15+
))) => {
1616
// The pattern cannot be formatted in a way that the match stays
1717
// within the column limit. The rewrite should therefore be
1818
// skipped.

tests/target/match.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,12 @@ fn issue507() {
255255

256256
fn issue508() {
257257
match s.type_id() {
258-
Some(
259-
NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLCanvasElement)),
260-
) => true,
261-
Some(
262-
NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLObjectElement)),
263-
) => s.has_object_data(),
258+
Some(NodeTypeId::Element(ElementTypeId::HTMLElement(
259+
HTMLElementTypeId::HTMLCanvasElement,
260+
))) => true,
261+
Some(NodeTypeId::Element(ElementTypeId::HTMLElement(
262+
HTMLElementTypeId::HTMLObjectElement,
263+
))) => s.has_object_data(),
264264
Some(NodeTypeId::Element(_)) => false,
265265
}
266266
}

tests/target/pattern.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ fn main() {
4747
impl<'a, 'b> ResolveGeneratedContentFragmentMutator<'a, 'b> {
4848
fn mutate_fragment(&mut self, fragment: &mut Fragment) {
4949
match **info {
50-
GeneratedContentInfo::ContentItem(
51-
ContentItem::Counter(ref counter_name, counter_style),
52-
) => {}
50+
GeneratedContentInfo::ContentItem(ContentItem::Counter(
51+
ref counter_name,
52+
counter_style,
53+
)) => {}
5354
}
5455
}
5556
}

0 commit comments

Comments
 (0)