Skip to content

Commit a5f8239

Browse files
bors[bot]burrbull
andauthored
Merge #589
589: fix 579: cluster name r=Emilgardis a=burrbull Co-authored-by: Andrey Zgarbul <zgarbul.andrey@gmail.com>
2 parents 5205d8e + 0ff5428 commit a5f8239

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
## [v0.22.1] - 2022-04-05
11+
12+
- Fix #579
13+
1014
## [v0.22.0] - 2022-04-05
1115

1216
### Added
@@ -673,7 +677,8 @@ peripheral.register.write(|w| w.field().set());
673677

674678
- Initial version of the `svd2rust` tool
675679

676-
[Unreleased]: https://github.com/rust-embedded/svd2rust/compare/v0.22.0...HEAD
680+
[Unreleased]: https://github.com/rust-embedded/svd2rust/compare/v0.22.1...HEAD
681+
[v0.22.1]: https://github.com/rust-embedded/svd2rust/compare/v0.22.0...v0.22.1
677682
[v0.22.0]: https://github.com/rust-embedded/svd2rust/compare/v0.21.0...v0.22.0
678683
[v0.21.0]: https://github.com/rust-embedded/svd2rust/compare/v0.20.0...v0.21.0
679684
[v0.20.0]: https://github.com/rust-embedded/svd2rust/compare/v0.19.0...v0.20.0

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ keywords = [
2323
license = "MIT OR Apache-2.0"
2424
name = "svd2rust"
2525
repository = "https://github.com/rust-embedded/svd2rust/"
26-
version = "0.22.0"
26+
version = "0.22.1"
2727
readme = "README.md"
2828

2929
[package.metadata.deb]

src/generate/peripheral.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ fn expand_cluster(
745745
} else {
746746
let mut accessors = TokenStream::new();
747747
let nb_name = util::replace_suffix(&info.name, "");
748-
let ty = name_to_wrapped_ty(&nb_name, name)?;
748+
let ty = name_to_ty(&nb_name, name)?;
749749
let nb_name_cs =
750750
Ident::new(&nb_name.to_sanitized_snake_case(), Span::call_site());
751751
let description = info.description.as_ref().unwrap_or(&info.name);

0 commit comments

Comments
 (0)