Skip to content

Commit 70ba3ac

Browse files
authored
spi: fix clippy lint (#385)
* spi: fix clippy lint * edition: 2021 -> 2024
1 parent ab9b9ca commit 70ba3ac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+451
-400
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- "stm32wl5x_cm4"
2525
- "stm32wle5"
2626
toolchain:
27-
- "1.62" # MSRV
27+
- "1.85" # MSRV
2828
- "beta"
2929
exclude:
3030
- mcu: "stm32wl5x_cm0p"

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
- Renamed function TcxoMode::set_txco_trim() to TcxoMode::set_tcxo_trim() to correct spelling.
1010
- Renamed enum CmdStatus::Avaliable to CmdStatus::Available to correct spelling.
1111
- Updated minimum `chrono` version to `0.4.23` to satisfy `cargo-audit`.
12-
- Changed minimum supported rust version from 1.60 to 1.62.
12+
- Changed the edition from 2021 to 2024.
13+
- Changed minimum supported rust version from 1.60 to 1.85.
1314

1415
### Fixed
1516
- Added a missing `must_use` in `SleepCfg::set_startup`.

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,18 @@ incremental = false
4343
lto = false
4444
opt-level = 3
4545
overflow-checks = false
46+
47+
[workspace.package]
48+
edition = "2024"
49+
authors = ["Alex Martens <[email protected]>"]
50+
repository = "https://github.com/stm32-rs/stm32wlxx-hal"
51+
license = "MIT OR Apache-2.0"
52+
# To update version change:
53+
# * BSP versions
54+
# * BSP HAL dependency versions
55+
# * README
56+
# * BSP READMES
57+
# * lock file
58+
# * CHANGELOG Unreleased (URL and header)
59+
version = "0.6.1"
60+
rust-version = "1.85" # update MSRV in CI, and shield in README

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![stable-docs](https://img.shields.io/badge/docs-stable-blue)](https://docs.rs/stm32wlxx-hal/)
55
[![nightly-docs](https://img.shields.io/badge/docs-nightly-black)](https://stm32-rs.github.io/stm32wlxx-hal/stm32wlxx_hal/index.html)
66
[![crates.io](https://img.shields.io/crates/v/stm32wlxx-hal.svg)](https://crates.io/crates/stm32wlxx-hal)
7-
[![rustc](https://img.shields.io/badge/rustc-1.62+-blue.svg)](https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field)
7+
[![rustc](https://img.shields.io/badge/rustc-1.85+-blue.svg)](https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field)
88

99
Embedded rust HAL (hardware abstraction layer) for the STM32WL series.
1010

examples/Cargo.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
[package]
22
name = "examples"
3-
version = "0.1.0"
43
publish = false
5-
authors = ["Alex Martens <[email protected]>"]
6-
edition = "2021"
7-
license = "MIT OR Apache-2.0"
4+
5+
authors.workspace = true
6+
edition.workspace = true
7+
license.workspace = true
8+
repository.workspace = true
9+
rust-version.workspace = true
10+
version.workspace = true
811

912
[dependencies]
1013
cortex-m = { version = "0.7", features = ["critical-section-single-core"] }

examples/examples/buzzer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use panic_probe as _; // panic handler
1212
use stm32wlxx_hal::{
1313
self as hal,
1414
cortex_m::{self, delay::Delay},
15-
gpio::{pins, Output, PinState, PortA},
15+
gpio::{Output, PinState, PortA, pins},
1616
pac,
1717
util::new_delay,
1818
};

examples/examples/gpio-blink.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use panic_probe as _; // panic handler
88
use stm32wlxx_hal::{
99
self as hal,
1010
cortex_m::{self, delay::Delay},
11-
gpio::{pins, Output, PinState, PortB},
11+
gpio::{Output, PinState, PortB, pins},
1212
pac,
1313
util::new_delay,
1414
};

examples/examples/gpio-button-irq.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use defmt_rtt as _; // global logger
77
use panic_probe as _; // panic handler
88
use stm32wlxx_hal::{
99
self as hal, cortex_m,
10-
gpio::{pins, Exti, ExtiTrg, Input, PortC, Pull},
10+
gpio::{Exti, ExtiTrg, Input, PortC, Pull, pins},
1111
pac::{self, interrupt},
1212
};
1313

examples/examples/gpio-button.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use defmt_rtt as _; // global logger
77
use panic_probe as _; // panic handler
88
use stm32wlxx_hal::{
99
self as hal, cortex_m,
10-
gpio::{pins, Input, PinState, PortC, Pull},
10+
gpio::{Input, PinState, PortC, Pull, pins},
1111
pac,
1212
};
1313

0 commit comments

Comments
 (0)