]> git.lizzy.rs Git - rust.git/blobdiff - src/macros.rs
Merge pull request #3266 from wada314/fix-2973
[rust.git] / src / macros.rs
index 2a4774149ca1d1087fad899f2462174f10e3a7ad..9ce5c913ca55f48a82cadc4c00923098d9025281 100644 (file)
@@ -1290,7 +1290,7 @@ fn rewrite(
 
         // Indent the body since it is in a block.
         let indent_str = body_indent.to_string(&config);
-        let mut new_body = LineClasses::new(new_body.trim_right())
+        let mut new_body = LineClasses::new(new_body.trim_end())
             .enumerate()
             .fold(
                 (String::new(), true),