From 3e6721e79f049dd01880542667380640c2d1eeae Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Thu, 15 Feb 2024 17:29:34 -0800 Subject: [PATCH] Fix new static warnings with Dart 3.3 (#2173) --- lib/src/js/compile.dart | 2 +- lib/src/util/box.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/js/compile.dart b/lib/src/js/compile.dart index 0a2c0c9b0..086123846 100644 --- a/lib/src/js/compile.dart +++ b/lib/src/js/compile.dart @@ -250,7 +250,7 @@ List? _normalizeNonCanonicalSchemes(Object? schemes) => }; /// Implements the simplification algorithm for custom function return `Value`s. -/// {@link https://github.com/sass/sass/blob/main/spec/types/calculation.md#simplifying-a-calculationvalue} +/// See https://github.com/sass/sass/blob/main/spec/types/calculation.md#simplifying-a-calculationvalue Value _simplifyValue(Value value) => switch (value) { SassCalculation() => switch (( // Match against... diff --git a/lib/src/util/box.dart b/lib/src/util/box.dart index cfd076669..50a9eb750 100644 --- a/lib/src/util/box.dart +++ b/lib/src/util/box.dart @@ -13,7 +13,7 @@ class Box { Box._(this._inner); - bool operator ==(Object? other) => other is Box && other._inner == _inner; + bool operator ==(Object other) => other is Box && other._inner == _inner; int get hashCode => _inner.hashCode; }