]> git.lizzy.rs Git - rust.git/commitdiff
Updating code to ignore rustfmt issue.
authorUnknown <dobbybabee@gmail.com>
Fri, 1 Feb 2019 18:19:55 +0000 (13:19 -0500)
committerunknown <unknown@example.com>
Fri, 1 Feb 2019 18:21:19 +0000 (13:21 -0500)
tests/ui-toml/functions_maxlines/test.rs
tests/ui-toml/functions_maxlines/test.stderr

index 6ee75e4dbc1798868543272c8616e288de1df44d..cd0e00825861b68bc095df388dce5a8aa5041196 100644 (file)
@@ -1,6 +1,5 @@
 #![warn(clippy::too_many_lines)]
 
-
 // This function should be considered one line.
 fn many_comments_but_one_line_of_code() {
     /* println!("This is good."); */
@@ -22,6 +21,7 @@ fn too_many_lines() {
 }
 
 // This should be considered one line.
+#[rustfmt::skip]
 fn comment_starts_after_code() {
     let _ = 5; /* closing comment. */ /*
     this line shouldn't be counted theoretically.
@@ -34,6 +34,7 @@ fn comment_after_code() {
 }
 
 // This should fail since it is technically two lines.
+#[rustfmt::skip]
 fn comment_before_code() {
     let _ = "test";
     /* This comment extends to the front of
index f36c59787841c0892e0c9d7f222c690c4c39ca50..0669e99370b2852e55a47b157f6f143ed6cf1d28 100644 (file)
@@ -1,5 +1,5 @@
 error: This function has a large number of lines.
-  --> $DIR/test.rs:19:1
+  --> $DIR/test.rs:18:1
    |
 LL | / fn too_many_lines() {
 LL | |     println!("This is bad.");
@@ -10,7 +10,7 @@ LL | | }
    = note: `-D clippy::too-many-lines` implied by `-D warnings`
 
 error: This function has a large number of lines.
-  --> $DIR/test.rs:37:1
+  --> $DIR/test.rs:38:1
    |
 LL | / fn comment_before_code() {
 LL | |     let _ = "test";