From dc1245bbd883bc6e27529e5705f9ca593f5c6d25 Mon Sep 17 00:00:00 2001 From: Graham Esau Date: Sat, 24 Aug 2024 17:27:04 +0100 Subject: [PATCH] Test MSRV with `--all-features` --- .github/workflows/ci.yml | 6 +----- schemars/tests/indexmap.rs | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1260e7..e46e943 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,16 +14,12 @@ jobs: - nightly include: - rust: 1.65.0 - test_features: "" allow_failure: false - rust: stable - test_features: "--all-features" allow_failure: false - rust: beta - test_features: "--all-features" allow_failure: false - rust: nightly - test_features: "--all-features" allow_failure: true fail-fast: false steps: @@ -38,7 +34,7 @@ jobs: continue-on-error: ${{ matrix.allow_failure }} working-directory: ./schemars - name: Run tests - run: cargo test --verbose ${{ matrix.test_features }} --no-fail-fast + run: cargo test --verbose --all-features --no-fail-fast continue-on-error: ${{ matrix.allow_failure }} working-directory: ./schemars - name: Run derive tests diff --git a/schemars/tests/indexmap.rs b/schemars/tests/indexmap.rs index e243f35..76fcd56 100644 --- a/schemars/tests/indexmap.rs +++ b/schemars/tests/indexmap.rs @@ -1,5 +1,5 @@ mod util; -use std::hash::RandomState; +use std::collections::hash_map::RandomState; use indexmap2::{IndexMap, IndexSet}; use schemars::JsonSchema;