Skip to content

Commit 1243c52

Browse files
authored
Merge pull request #638 from Amanieu/msrv-check
Check MSRV in CI with cargo-msrv
2 parents 93481e2 + eb36023 commit 1243c52

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

.github/workflows/rust.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
# Disabled due to issues with cross-rs
5656
#x86_64-pc-windows-gnu,
5757
]
58-
channel: [1.74.0, nightly]
58+
channel: [1.80.0, nightly]
5959
include:
6060
- os: macos-latest
6161
target: aarch64-apple-darwin
@@ -65,10 +65,10 @@ jobs:
6565
channel: nightly
6666
- os: macos-latest
6767
target: aarch64-apple-darwin
68-
channel: 1.74.0
68+
channel: 1.80.0
6969
- os: windows-latest
7070
target: x86_64-pc-windows-msvc
71-
channel: 1.74.0
71+
channel: 1.80.0
7272
- os: ubuntu-latest
7373
target: x86_64-unknown-linux-gnu
7474
channel: beta
@@ -81,12 +81,8 @@ jobs:
8181
needs: basics
8282
steps:
8383
- uses: actions/checkout@v3
84-
- uses: dtolnay/rust-toolchain@nightly
85-
- uses: dtolnay/[email protected] # MSRV
86-
- run: cargo +nightly generate-lockfile -Z direct-minimal-versions
87-
- env:
88-
TARGET: x86_64-unknown-linux-gnu
89-
run: sh ci/run.sh
84+
- run: cargo install cargo-msrv
85+
- run: cargo msrv --workspace verify
9086

9187
dep_of_std:
9288
runs-on: ubuntu-latest

src/map.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5519,8 +5519,7 @@ mod test_map {
55195519
map.insert(2, 1);
55205520
map.insert(3, 4);
55215521

5522-
#[allow(clippy::no_effect)] // false positive lint
5523-
map[&4];
5522+
_ = map[&4];
55245523
}
55255524

55265525
#[test]

0 commit comments

Comments
 (0)