Remove unnecessary cast. (#117)
This cast was working around
https://github.com/dart-lang/sdk/issues/43136. Now that it is fixed,
the cast is no longer needed.
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8e430ac..9132b57 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,8 @@
- `Font.merge` and `BoxEdge.merge` are now static methods instead of factory
constructors.
- Add a type on the `identList` argument to `TokenKind.matchList`.
+- Remove workaround for https://github.com/dart-lang/sdk/issues/43136, which is
+ now fixed.
## 0.16.2
diff --git a/pubspec.yaml b/pubspec.yaml
index 53be256..4eee836 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -5,7 +5,7 @@
homepage: https://github.com/dart-lang/csslib
environment:
- sdk: '>=2.10.0-2.0.dev <2.10.0'
+ sdk: '>=2.11.0-0.0 <2.11.0'
dependencies:
source_span: ^1.8.0-nullsafety
diff --git a/test/samples_test.dart b/test/samples_test.dart
index 5a066a6..b906131 100644
--- a/test/samples_test.dart
+++ b/test/samples_test.dart
@@ -27,7 +27,7 @@
final cssDir = Directory.fromUri(libraryUri.resolve('examples'));
for (var element in cssDir.listSync()) {
if (element is File && element.uri.pathSegments.last.endsWith('.css')) {
- test(element.uri.pathSegments.last, () => testCSSFile(element as File));
+ test(element.uri.pathSegments.last, () => testCSSFile(element));
}
}
}