From 1c2ea81fe30709e254f7de6718466261bec56c9a Mon Sep 17 00:00:00 2001 From: Matej Knopp Date: Thu, 4 Jul 2024 19:09:05 +0200 Subject: [PATCH] chore: fix deprecations (#12) --- rustup/lib/src/rustup.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rustup/lib/src/rustup.dart b/rustup/lib/src/rustup.dart index 616e9c7..d01dd19 100644 --- a/rustup/lib/src/rustup.dart +++ b/rustup/lib/src/rustup.dart @@ -303,7 +303,7 @@ class RustupToolchain { final lines = res.toString().split('\n').where((e) => e.isNotEmpty); return lines .map((e) => RustTarget.fromTriple(e)) - .whereNotNull() + .nonNulls .toList(growable: false); }