]> git.lizzy.rs Git - rust.git/commitdiff
Update tests to use the absolute position for small parent heuristic
authortopecongiro <seuchida@gmail.com>
Mon, 7 May 2018 21:23:14 +0000 (06:23 +0900)
committertopecongiro <seuchida@gmail.com>
Mon, 7 May 2018 21:23:14 +0000 (06:23 +0900)
tests/target/chains.rs
tests/target/configs/indent_style/block_call.rs
tests/target/expr-block.rs
tests/target/expr.rs
tests/target/try-conversion.rs

index d3e3cad5ebbd7c4e227e609af56c44088fa4bbc2..172a7815c3915a74b62ac4af73a72fcafb61a667 100644 (file)
@@ -151,7 +151,8 @@ fn try_shorthand() {
     let zzzz = expr?.another?.another?.another?.another?;
     let aaa = x??????????????????????????????????????????????????????????????????????????;
 
-    let y = a.very
+    let y = a
+        .very
         .loooooooooooooooooooooooooooooooooooooong()
         .chain()
         .inside()
@@ -206,9 +207,8 @@ fn issue2126() {
             {
                 {
                     {
-                        let x = self.span_from(
-                            sub_span.expect("No span found for struct arant variant"),
-                        );
+                        let x = self
+                            .span_from(sub_span.expect("No span found for struct arant variant"));
                         self.sspanpan_from_span(
                             sub_span.expect("No span found for struct variant"),
                         );
index 4e4c9465fe834a193084b9a39979545f6e291fe9..77f3c551f0a5278946c345065d49cf47970ff3ab 100644 (file)
@@ -25,7 +25,8 @@ fn main() {
     // #1380
     {
         {
-            let creds = self.client
+            let creds = self
+                .client
                 .client_credentials(&self.config.auth.oauth2.id, &self.config.auth.oauth2.secret)?;
         }
     }
index 859b4562dff3c87fd23930c234dccdc8121fe228..d5a6762d12b5391ec31b27f0c62d657fe9f51da4 100644 (file)
@@ -283,6 +283,7 @@ fn issue_1862() {
 }
 
 fn issue_1878() {
-    let channel: &str = seq.next_element()?
+    let channel: &str = seq
+        .next_element()?
         .ok_or_else(|| de::Error::invalid_length(2, &self))?;
 }
index 5f12ec3ff7a4462c99954d2568eb33478461dc14..34753bc92713b7700ad52744f23e440ddee4fd70 100644 (file)
@@ -404,7 +404,8 @@ fn bar(&self) {
             let x = match () {
                 () => {
                     let i;
-                    i == self.install_config
+                    i == self
+                        .install_config
                         .storage
                         .experimental_compressed_block_size as usize
                 }
index e16fba278d2c359e46993b1d3bb89515fddbb77f..04992a0a0f6c3dbd600da918c73be68702c1458a 100644 (file)
@@ -3,7 +3,8 @@
 fn main() {
     let x = some_expr()?;
 
-    let y = a.very
+    let y = a
+        .very
         .loooooooooooooooooooooooooooooooooooooong()
         .chain()
         .inside()