about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohann Hemmann <johann.hemmann@code.berlin>2024-01-04 14:00:36 +0100
committerJohann Hemmann <johann.hemmann@code.berlin>2024-01-04 14:01:03 +0100
commitea675ab888553d0f48369cc46bdd294dac679ffa (patch)
tree8b3c06f80917a9a3f6ea2cabbfeb7d71b24be245
parentf2b872a3c51553f1cfb3d406795dfd5749ad8435 (diff)
downloadrust-ea675ab888553d0f48369cc46bdd294dac679ffa.tar.gz
rust-ea675ab888553d0f48369cc46bdd294dac679ffa.zip
Insert newline at the end
-rw-r--r--crates/ide/src/rename.rs29
1 files changed, 19 insertions, 10 deletions
diff --git a/crates/ide/src/rename.rs b/crates/ide/src/rename.rs
index 973549f8773..22e0ec658f0 100644
--- a/crates/ide/src/rename.rs
+++ b/crates/ide/src/rename.rs
@@ -466,7 +466,7 @@ mod tests {
             .collect::<Vec<_>>();
 
         format!(
-            "source_file_edits: {:#?}\nfile_system_edits: {:#?}",
+            "source_file_edits: {:#?}\nfile_system_edits: {:#?}\n",
             source_file_edits, file_system_edits
         )
     }
@@ -973,7 +973,8 @@ mod foo$0;
                             },
                         },
                     ),
-                ]"#]],
+                ]
+            "#]],
         );
     }
 
@@ -1035,7 +1036,8 @@ use crate::foo$0::FooContent;
                             },
                         },
                     ),
-                ]"#]],
+                ]
+            "#]],
         );
     }
 
@@ -1086,7 +1088,8 @@ mod fo$0o;
                             },
                         },
                     ),
-                ]"#]],
+                ]
+            "#]],
         );
     }
 
@@ -1132,7 +1135,8 @@ mod outer { mod fo$0o; }
                             },
                         },
                     ),
-                ]"#]],
+                ]
+            "#]],
         );
     }
 
@@ -1218,7 +1222,8 @@ pub mod foo$0;
                             },
                         },
                     ),
-                ]"#]],
+                ]
+            "#]],
         );
     }
 
@@ -1299,7 +1304,8 @@ mod quux;
                             },
                         },
                     ),
-                ]"#]],
+                ]
+            "#]],
         )
     }
     #[test]
@@ -1367,7 +1373,8 @@ mod bar$0;
 "#,
             expect![[r#"
                 source_file_edits: []
-                file_system_edits: []"#]],
+                file_system_edits: []
+            "#]],
         )
     }
 
@@ -1444,7 +1451,8 @@ pub fn baz() {}
                             },
                         },
                     ),
-                ]"#]],
+                ]
+            "#]],
         );
     }
 
@@ -1521,7 +1529,8 @@ pub fn baz() {}
                             },
                         },
                     ),
-                ]"#]],
+                ]
+            "#]],
         );
     }