]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/doc.rs
Run rustfmt
[rust.git] / clippy_lints / src / doc.rs
index f72a13147dc9e761b5f9e4bc99a0b9948d782222..8977ea437d141c3d78c5c3270172b31eaf044f38 100644 (file)
@@ -94,10 +94,7 @@ pub fn strip_doc_comment_decoration(comment: &str, span: Span) -> (String, Vec<(
             return (
                 doc.to_owned(),
                 vec![
-                    (
-                        doc.len(),
-                        span.with_lo(span.lo() + BytePos(prefix.len() as u32)),
-                    ),
+                    (doc.len(), span.with_lo(span.lo() + BytePos(prefix.len() as u32))),
                 ],
             );
         }
@@ -112,10 +109,7 @@ pub fn strip_doc_comment_decoration(comment: &str, span: Span) -> (String, Vec<(
             debug_assert_eq!(offset as u32 as usize, offset);
             contains_initial_stars |= line.trim_left().starts_with('*');
             // +1 for the newline
-            sizes.push((
-                line.len() + 1,
-                span.with_lo(span.lo() + BytePos(offset as u32)),
-            ));
+            sizes.push((line.len() + 1, span.with_lo(span.lo() + BytePos(offset as u32))));
         }
         if !contains_initial_stars {
             return (doc.to_string(), sizes);