Skip to content

Commit a5c9c02

Browse files
committed
Run clippy from MSRV.
I don't want lints that tell me to fix things that don't work in the MSRV. Unfortunately I also have to unify the MSRV for cortex-m and cortex-m-rt, raising the cortex-m MSRV to 1.61.
1 parent 620d3ef commit a5c9c02

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

.github/workflows/clippy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15-
- uses: dtolnay/rust-toolchain@stable
15+
- uses: dtolnay/rust-toolchain@1.61
1616
with:
1717
components: clippy
1818
- run: cargo clippy --all --features cortex-m/critical-section-single-core -- --deny warnings

cortex-m/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
- MSRV is 1.61 to match cortex-m-rt crate
11+
1012
## [v0.7.7] - 2023-01-03
1113

1214
- Add missing documentation for `critical-section-single-core` feature added

cortex-m/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ repository = "https://github.com/rust-embedded/cortex-m"
1414
version = "0.7.7"
1515
edition = "2018"
1616
links = "cortex-m" # prevent multiple versions of this crate to be linked together
17+
rust-version = "1.61"
1718

1819
[dependencies]
1920
bare-metal = { version = "0.2.4", features = ["const-fn"] }

cortex-m/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This project is developed and maintained by the [Cortex-M team][team].
1111

1212
## Minimum Supported Rust Version (MSRV)
1313

14-
This crate is guaranteed to compile on stable Rust 1.59 and up. It might compile with older versions but that may change in any new patch release.
14+
This crate is guaranteed to compile on stable Rust 1.61 and up. It might compile with older versions but that may change in any new patch release.
1515

1616
## License
1717

0 commit comments

Comments
 (0)