From 0440c2c37723f4fb6f021d49fb17fc011e06f4e1 Mon Sep 17 00:00:00 2001 From: topecongiro Date: Sat, 17 Jun 2017 16:57:00 +0900 Subject: [PATCH] Update tests --- tests/target/chains-visual.rs | 7 +++---- tests/target/configs-fn_call_style-block.rs | 13 +++++-------- tests/target/configs-force_format_strings-true.rs | 6 +++--- tests/target/configs-format_strings-true.rs | 6 +++--- tests/target/long_field_access.rs | 4 ++-- 5 files changed, 16 insertions(+), 20 deletions(-) diff --git a/tests/target/chains-visual.rs b/tests/target/chains-visual.rs index 48222b14e6e..3962bdcbbcd 100644 --- a/tests/target/chains-visual.rs +++ b/tests/target/chains-visual.rs @@ -47,10 +47,9 @@ fn main() { }); let suuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuum = - xxxxxxx.map(|x| x + 5).map(|x| x / 2).fold( - 0, - |acc, x| acc + x, - ); + xxxxxxx.map(|x| x + 5) + .map(|x| x / 2) + .fold(0, |acc, x| acc + x); aaaaaaaaaaaaaaaa.map(|x| { x += 1; diff --git a/tests/target/configs-fn_call_style-block.rs b/tests/target/configs-fn_call_style-block.rs index dfc8daef6d9..55c5ecdf593 100644 --- a/tests/target/configs-fn_call_style-block.rs +++ b/tests/target/configs-fn_call_style-block.rs @@ -18,18 +18,15 @@ fn main() { )); // chain - let x = yooooooooooooo.fooooooooooooooo.baaaaaaaaaaaaar( - hello, - world, - ); + let x = yooooooooooooo + .fooooooooooooooo + .baaaaaaaaaaaaar(hello, world); // #1380 { { - let creds = self.client.client_credentials( - &self.config.auth.oauth2.id, - &self.config.auth.oauth2.secret, - )?; + let creds = self.client + .client_credentials(&self.config.auth.oauth2.id, &self.config.auth.oauth2.secret)?; } } diff --git a/tests/target/configs-force_format_strings-true.rs b/tests/target/configs-force_format_strings-true.rs index 875d89dd2f9..49ba3e7d46c 100644 --- a/tests/target/configs-force_format_strings-true.rs +++ b/tests/target/configs-force_format_strings-true.rs @@ -4,7 +4,7 @@ // Force format strings fn main() { - let lorem = - "ipsum dolor sit amet consectetur \ - adipiscing elit lorem ipsum dolor sit"; + let lorem = "ipsum dolor sit amet \ + consectetur adipiscing elit \ + lorem ipsum dolor sit"; } diff --git a/tests/target/configs-format_strings-true.rs b/tests/target/configs-format_strings-true.rs index 84f84380b25..fdd5ab2c97d 100644 --- a/tests/target/configs-format_strings-true.rs +++ b/tests/target/configs-format_strings-true.rs @@ -3,7 +3,7 @@ // Force format strings fn main() { - let lorem = - "ipsum dolor sit amet consectetur \ - adipiscing elit lorem ipsum dolor sit"; + let lorem = "ipsum dolor sit amet \ + consectetur adipiscing elit \ + lorem ipsum dolor sit"; } diff --git a/tests/target/long_field_access.rs b/tests/target/long_field_access.rs index 349d2c2f639..e4efd86b7f9 100644 --- a/tests/target/long_field_access.rs +++ b/tests/target/long_field_access.rs @@ -1,4 +1,4 @@ fn f() { - block_flow.base.stacking_relative_position_of_display_port = - self.base.stacking_relative_position_of_display_port; + block_flow.base.stacking_relative_position_of_display_port = self.base + .stacking_relative_position_of_display_port; }