Skip to content

Commit

Permalink
Merge pull request #799 from rust-embedded/fix-798
Browse files Browse the repository at this point in the history
fix missing move in register/cluster array iter closure
  • Loading branch information
burrbull authored Jan 4, 2024
2 parents 6b14520 + adba043 commit e2e307c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/).

## [Unreleased]

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

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

Expand Down
2 changes: 1 addition & 1 deletion src/generate/peripheral/accessor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ impl ToTokens for RawArrayAccessor {
#[doc = #doc]
#[inline(always)]
pub fn #name_iter(&self) -> impl Iterator<Item=&#ty> {
(0..#dim).map(|n| #cast)
(0..#dim).map(move |n| #cast)
}
}
.to_tokens(tokens);
Expand Down

0 comments on commit e2e307c

Please sign in to comment.