diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml index f6aee6f..a8b4a92 100644 --- a/.github/workflows/rust.yaml +++ b/.github/workflows/rust.yaml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v2 - name: Format run: cargo fmt --all -- --check - name: Lint diff --git a/aoc2020/src/day16.rs b/aoc2020/src/day16.rs index da0f583..4f30ecb 100644 --- a/aoc2020/src/day16.rs +++ b/aoc2020/src/day16.rs @@ -223,7 +223,7 @@ mod tests { let matches = assign_field_positions(fields, tickets); - let expected = ["row", "class", "seat"] + let expected = (&["row", "class", "seat"]) .iter() .copied() .enumerate()