]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/tabs_in_doc_comments.rs
Split out `infalliable_detructuring_match`
[rust.git] / clippy_lints / src / tabs_in_doc_comments.rs
index c9b4b245f4cc25019d130f05b33151bf80a81bdf..15543b6a2627785bd303a948f911b1fb5bbe1cc1 100644 (file)
@@ -64,7 +64,7 @@ fn warn_if_tabs_in_doc(cx: &EarlyContext<'_>, attr: &ast::Attribute) {
         if let ast::AttrKind::DocComment(_, comment) = attr.kind {
             let comment = comment.as_str();
 
-            for (lo, hi) in get_chunks_of_tabs(&comment) {
+            for (lo, hi) in get_chunks_of_tabs(comment) {
                 // +3 skips the opening delimiter
                 let new_span = Span::new(
                     attr.span.lo() + BytePos(3 + lo),