]> git.lizzy.rs Git - rust.git/blobdiff - src/utils.rs
Remove BlockIndentStyle::Inherit
[rust.git] / src / utils.rs
index da48831e672e12301876b199ee23ee47f2314919..999e1192b5d27e39eff66ba64cb2544800aabbce 100644 (file)
@@ -278,7 +278,11 @@ pub fn wrap_str<S: AsRef<str>>(s: S, max_width: usize, shape: Shape) -> Option<S
             // indentation.
             // A special check for the last line, since the caller may
             // place trailing characters on this line.
-            if snippet.lines().rev().next().unwrap().len() > shape.indent.width() + shape.width {
+            if snippet.lines()
+                   .rev()
+                   .next()
+                   .unwrap()
+                   .len() > shape.indent.width() + shape.width {
                 return None;
             }
         }