Skip to content

Commit 07406a8

Browse files
authored
Merge pull request #897 from robamu/field-writer-lifetime-ellision
lifetime ellision for FieldWriter to fix clippy warning
2 parents 0e2aa42 + 2ad6e0c commit 07406a8

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
88
## [Unreleased]
99

1010
- Force using rust edition 2021 in CI
11+
- Added lifetime ellision for `FieldWriter` where the explicit lifetimes are not necessary, which
12+
fixes the `clippy::needless_lifetimes` warning on rustc 1.84
1113

1214
## [v0.35.0] - 2024-11-12
1315

ci/script.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ main() {
586586
test_patched_stm32 stm32f103
587587
test_patched_stm32 stm32f411
588588
test_patched_stm32 stm32f469
589-
test_patched_stm32 stm32f7x3
589+
test_patched_stm32 stm32f723
590590
test_patched_stm32 stm32g070
591591
test_patched_stm32 stm32g473
592592
test_patched_stm32 stm32h743

ci/svd2rust-regress/tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1863,8 +1863,8 @@
18631863
svd_url: https://stm32-rs.github.io/stm32-rs/stm32f469.svd.patched
18641864
- arch: cortex-m
18651865
mfgr: STMicro
1866-
chip: STM32F7x3
1867-
svd_url: https://stm32-rs.github.io/stm32-rs/stm32f7x3.svd.patched
1866+
chip: STM32F723
1867+
svd_url: https://stm32-rs.github.io/stm32-rs/stm32f723.svd.patched
18681868
- arch: cortex-m
18691869
mfgr: STMicro
18701870
chip: STM32G070

src/generate/generic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ pub struct RangeTo<const MAX: u64>;
337337
/// Write field Proxy
338338
pub type FieldWriter<'a, REG, const WI: u8, FI = u8, Safety = Unsafe> = raw::FieldWriter<'a, REG, WI, FI, Safety>;
339339

340-
impl<'a, REG, const WI: u8, FI, Safety> FieldWriter<'a, REG, WI, FI, Safety>
340+
impl<REG, const WI: u8, FI, Safety> FieldWriter<'_, REG, WI, FI, Safety>
341341
where
342342
REG: Writable + RegisterSpec,
343343
FI: FieldSpec,

0 commit comments

Comments
 (0)