Skip to content

Commit e2e307c

Browse files
authored
Merge pull request #799 from rust-embedded/fix-798
fix missing move in register/cluster array iter closure
2 parents 6b14520 + adba043 commit e2e307c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
77

88
## [Unreleased]
99

10-
- Fix `cargo doc` constants generation
10+
- `move` in `RegisterBlock::reg_iter` implementation (iterator of register/cluster array)
11+
- Fix `cargo doc` constants generation
1112

1213
## [v0.31.4] - 2024-01-03
1314

src/generate/peripheral/accessor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ impl ToTokens for RawArrayAccessor {
190190
#[doc = #doc]
191191
#[inline(always)]
192192
pub fn #name_iter(&self) -> impl Iterator<Item=&#ty> {
193-
(0..#dim).map(|n| #cast)
193+
(0..#dim).map(move |n| #cast)
194194
}
195195
}
196196
.to_tokens(tokens);

0 commit comments

Comments
 (0)