]> git.lizzy.rs Git - rust.git/commitdiff
Use ListItem::has_comment
authorShotaro Yamada <sinkuu@sinkuu.xyz>
Sun, 1 Apr 2018 12:43:01 +0000 (21:43 +0900)
committerShotaro Yamada <sinkuu@sinkuu.xyz>
Sun, 1 Apr 2018 13:29:26 +0000 (22:29 +0900)
src/patterns.rs

index 53051c71ba710cc4b6a1d0bedc7c8cdf8713bac0..bbfe55ec6e9954ab572170f0835e32b1e2284aeb 100644 (file)
@@ -405,7 +405,7 @@ fn count_wildcard_suffix_len(
     }) {
         suffix_len += 1;
 
-        if item.pre_comment.is_some() || item.post_comment.is_some() {
+        if item.has_comment() {
             break;
         }
     }