From a25d22c57afcaee4cba4ce9691b3418c2e16f2aa Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 13 Jan 2025 12:48:19 +0100 Subject: [PATCH 1/3] lifetime ellision for FieldWriter to fix clippy warning --- src/generate/generic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generate/generic.rs b/src/generate/generic.rs index 706b7e12..19c8230b 100644 --- a/src/generate/generic.rs +++ b/src/generate/generic.rs @@ -337,7 +337,7 @@ pub struct RangeTo; /// Write field Proxy pub type FieldWriter<'a, REG, const WI: u8, FI = u8, Safety = Unsafe> = raw::FieldWriter<'a, REG, WI, FI, Safety>; -impl<'a, REG, const WI: u8, FI, Safety> FieldWriter<'a, REG, WI, FI, Safety> +impl FieldWriter<'_, REG, WI, FI, Safety> where REG: Writable + RegisterSpec, FI: FieldSpec, From 0aa3310904fb5015672cd5381e618319cc7f0506 Mon Sep 17 00:00:00 2001 From: Andrey Zgarbul Date: Mon, 13 Jan 2025 18:11:27 +0300 Subject: [PATCH 2/3] fix F723 url --- ci/script.sh | 2 +- ci/svd2rust-regress/tests.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/script.sh b/ci/script.sh index 6524bb60..01c05a89 100755 --- a/ci/script.sh +++ b/ci/script.sh @@ -586,7 +586,7 @@ main() { test_patched_stm32 stm32f103 test_patched_stm32 stm32f411 test_patched_stm32 stm32f469 - test_patched_stm32 stm32f7x3 + test_patched_stm32 stm32f723 test_patched_stm32 stm32g070 test_patched_stm32 stm32g473 test_patched_stm32 stm32h743 diff --git a/ci/svd2rust-regress/tests.yml b/ci/svd2rust-regress/tests.yml index 6ed7ebbe..06501c71 100644 --- a/ci/svd2rust-regress/tests.yml +++ b/ci/svd2rust-regress/tests.yml @@ -1863,8 +1863,8 @@ svd_url: https://stm32-rs.github.io/stm32-rs/stm32f469.svd.patched - arch: cortex-m mfgr: STMicro - chip: STM32F7x3 - svd_url: https://stm32-rs.github.io/stm32-rs/stm32f7x3.svd.patched + chip: STM32F723 + svd_url: https://stm32-rs.github.io/stm32-rs/stm32f723.svd.patched - arch: cortex-m mfgr: STMicro chip: STM32G070 From 2ad6e0cb33c794ce99701520cbbeb3f470f5fdc9 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 14 Jan 2025 18:05:17 +0100 Subject: [PATCH 3/3] changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ee8ba46..c07b8cae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/). ## [Unreleased] - Force using rust edition 2021 in CI +- Added lifetime ellision for `FieldWriter` where the explicit lifetimes are not necessary, which + fixes the `clippy::needless_lifetimes` warning on rustc 1.84 ## [v0.35.0] - 2024-11-12