fix for API change (and incompatible inference) (#2053)
diff --git a/lib/src/rules/flutter_style_todos.dart b/lib/src/rules/flutter_style_todos.dart
index fb3865f..96147fa 100644
--- a/lib/src/rules/flutter_style_todos.dart
+++ b/lib/src/rules/flutter_style_todos.dart
@@ -60,7 +60,7 @@
}
Iterable<Token> _getPrecedingComments(Token token) sync* {
- var comment = token.precedingComments;
+ Token comment = token.precedingComments;
while (comment != null) {
yield comment;
comment = comment.next;
diff --git a/lib/src/rules/lines_longer_than_80_chars.dart b/lib/src/rules/lines_longer_than_80_chars.dart
index 59797ac..a5e216a 100644
--- a/lib/src/rules/lines_longer_than_80_chars.dart
+++ b/lib/src/rules/lines_longer_than_80_chars.dart
@@ -75,7 +75,7 @@
}
Iterable<Token> _getPrecedingComments(Token token) sync* {
- var comment = token.precedingComments;
+ Token comment = token.precedingComments;
while (comment != null) {
yield comment;
comment = comment.next;