Skip to content

Commit

Permalink
Fix new static warnings with Dart 3.3 (#2173)
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 authored Feb 16, 2024
1 parent 2cab33e commit 3e6721e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/js/compile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ List<String>? _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...
Expand Down
2 changes: 1 addition & 1 deletion lib/src/util/box.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Box<T> {

Box._(this._inner);

bool operator ==(Object? other) => other is Box<T> && other._inner == _inner;
bool operator ==(Object other) => other is Box<T> && other._inner == _inner;

int get hashCode => _inner.hashCode;
}
Expand Down

0 comments on commit 3e6721e

Please sign in to comment.