From 9f07de8c3e5efec15a55922354673614113e3ad2 Mon Sep 17 00:00:00 2001 From: Ben Brandt Date: Thu, 24 Apr 2025 16:39:47 +0200 Subject: [PATCH 1/2] Fix clippy lint for iter::repeat_n --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index 6523881..a8e4fd0 100644 --- a/src/util.rs +++ b/src/util.rs @@ -29,7 +29,7 @@ impl Types for Flags { match self.repr() { FlagsRepr::U8 => Box::new(iter::once(Type::U8)), FlagsRepr::U16 => Box::new(iter::once(Type::U16)), - FlagsRepr::U32(count) => Box::new(iter::repeat(Type::U32).take(count)), + FlagsRepr::U32(count) => Box::new(std::iter::repeat_n(Type::U32, count)), } } } From 45bc9520547f2ac68919d6d56f3d39bf7c1a0e13 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Thu, 24 Apr 2025 09:10:38 -0600 Subject: [PATCH 2/2] make test.yaml `test` job depend on `linux` job The latter builds and caches CPython for the former to use, which is important because we don't currently support building CPython on Windows. Signed-off-by: Joel Dice --- .github/workflows/test.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 2c9767d..534f565 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -69,6 +69,7 @@ jobs: test: name: Test + needs: linux strategy: fail-fast: false matrix: