Skip to content

Commit

Permalink
release 0.34.1
Browse files Browse the repository at this point in the history
  • Loading branch information
burrbull committed Nov 12, 2024
1 parent 660f3dd commit 2a18ecf
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/).

## [Unreleased]

## [v0.34.1] - 2024-11-12

- Add `crate_path` setting
- Inline `Settings` into `Config`, add `settings_file`
- Fix MSP430 PAC inner attribute generation when used with the `-m` switch.
Expand Down Expand Up @@ -928,7 +930,8 @@ peripheral.register.write(|w| w.field().set());

- Initial version of the `svd2rust` tool

[Unreleased]: https://github.com/rust-embedded/svd2rust/compare/v0.34.0...HEAD
[Unreleased]: https://github.com/rust-embedded/svd2rust/compare/v0.34.1...HEAD
[v0.34.1]: https://github.com/rust-embedded/svd2rust/compare/v0.34.0...v0.34.1
[v0.34.0]: https://github.com/rust-embedded/svd2rust/compare/v0.33.5...v0.34.0
[v0.33.5]: https://github.com/rust-embedded/svd2rust/compare/v0.33.4...v0.33.5
[v0.33.4]: https://github.com/rust-embedded/svd2rust/compare/v0.33.3...v0.33.4
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ keywords = ["svd", "embedded", "register", "map", "generator"]
license = "MIT OR Apache-2.0"
name = "svd2rust"
repository = "https://github.com/rust-embedded/svd2rust/"
version = "0.34.0"
version = "0.34.1"
readme = "README.md"
rust-version = "1.74"

Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ impl<'de> serde::Deserialize<'de> for CratePath {
impl FromStr for CratePath {
type Err = syn::Error;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
syn::parse_str(&s).map(Self)
syn::parse_str(s).map(Self)
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/generate/register.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ pub fn render_register_mod(
rsize.next_power_of_two()
};
let rty = rsize.to_ty()?;
let description = util::respace(&register.description.as_deref().unwrap_or_else(|| {
let description = util::respace(register.description.as_deref().unwrap_or_else(|| {
warn!("Missing description for register {rname}");
""
}));
Expand Down
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ pub fn escape_brackets(s: &str) -> String {
/// Escape basic html tags and brackets
pub fn escape_special_chars(s: &str) -> Cow<'_, str> {
if s.contains('[') {
escape_brackets(&s).into()
escape_brackets(s).into()
} else {
s.into()
}
Expand Down

0 comments on commit 2a18ecf

Please sign in to comment.