Skip to content

Commit 96fcc2b

Browse files
committed
Pin Rust toolchain versions in ci.yml
Pin dtolnay/rust-toolchain actions to specific stable and nightly versions to prevent sudden build failures due to toolchain updates. Also fixed the new warnings found by updating the toolchain.
1 parent 3ffdbec commit 96fcc2b

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
- uses: actions/checkout@v4
1616
- name: Install Rust
1717
uses: dtolnay/rust-toolchain@stable
18+
with:
19+
toolchain: 1.92.0
1820
- name: Build
1921
run: cargo build --verbose
2022
- name: Test
@@ -27,6 +29,8 @@ jobs:
2729
- uses: actions/checkout@v4
2830
- name: Install Rust
2931
uses: dtolnay/rust-toolchain@nightly
32+
with:
33+
toolchain: nightly-2025-12-16
3034
- name: Sanity check fuzzers
3135
run: |
3236
cargo install cargo-fuzz
@@ -40,9 +44,9 @@ jobs:
4044
runs-on: ubuntu-latest
4145
steps:
4246
- uses: actions/checkout@v4
43-
- uses: dtolnay/rust-toolchain@stable
47+
- uses: dtolnay/rust-toolchain@nightly
4448
with:
45-
toolchain: nightly
49+
toolchain: nightly-2025-12-16
4650
components: rustfmt
4751
- run: cargo +nightly fmt --all -- --check
4852

@@ -53,6 +57,7 @@ jobs:
5357
- uses: actions/checkout@v4
5458
- uses: dtolnay/rust-toolchain@stable
5559
with:
60+
toolchain: 1.92.0
5661
components: clippy
5762
- run: cargo clippy --all-features --all-targets -- -D warnings
5863

@@ -62,6 +67,8 @@ jobs:
6267
steps:
6368
- uses: actions/checkout@v4
6469
- uses: dtolnay/rust-toolchain@stable
70+
with:
71+
toolchain: 1.92.0
6572
# NOTE: We need to run `cargo test --doc` separately from normal tests:
6673
# https://github.com/rust-lang/cargo/issues/6669
6774
- name: Run doctests
@@ -80,6 +87,8 @@ jobs:
8087
- uses: actions/checkout@v4
8188
- name: Install Rust
8289
uses: dtolnay/rust-toolchain@stable
90+
with:
91+
toolchain: 1.92.0
8392
- name: Build and sanity test
8493
run: |
8594
cd dcsctp-cxx/

src/packet/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,6 @@ pub enum ChunkParseError {
151151

152152
#[cfg(test)]
153153
mod tests {
154-
use super::*;
155-
156154
#[test]
157155
fn read_big_endian() {
158156
let a = &[1, 2, 3, 4, 5, 6, 7, 8];

0 commit comments

Comments
 (0)