Skip to content

Commit 2a18ecf

Browse files
committed
release 0.34.1
1 parent 660f3dd commit 2a18ecf

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [v0.34.1] - 2024-11-12
11+
1012
- Add `crate_path` setting
1113
- Inline `Settings` into `Config`, add `settings_file`
1214
- Fix MSP430 PAC inner attribute generation when used with the `-m` switch.
@@ -928,7 +930,8 @@ peripheral.register.write(|w| w.field().set());
928930

929931
- Initial version of the `svd2rust` tool
930932

931-
[Unreleased]: https://github.com/rust-embedded/svd2rust/compare/v0.34.0...HEAD
933+
[Unreleased]: https://github.com/rust-embedded/svd2rust/compare/v0.34.1...HEAD
934+
[v0.34.1]: https://github.com/rust-embedded/svd2rust/compare/v0.34.0...v0.34.1
932935
[v0.34.0]: https://github.com/rust-embedded/svd2rust/compare/v0.33.5...v0.34.0
933936
[v0.33.5]: https://github.com/rust-embedded/svd2rust/compare/v0.33.4...v0.33.5
934937
[v0.33.4]: https://github.com/rust-embedded/svd2rust/compare/v0.33.3...v0.33.4

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ keywords = ["svd", "embedded", "register", "map", "generator"]
1717
license = "MIT OR Apache-2.0"
1818
name = "svd2rust"
1919
repository = "https://github.com/rust-embedded/svd2rust/"
20-
version = "0.34.0"
20+
version = "0.34.1"
2121
readme = "README.md"
2222
rust-version = "1.74"
2323

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ impl<'de> serde::Deserialize<'de> for CratePath {
375375
impl FromStr for CratePath {
376376
type Err = syn::Error;
377377
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
378-
syn::parse_str(&s).map(Self)
378+
syn::parse_str(s).map(Self)
379379
}
380380
}
381381

src/generate/register.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ pub fn render_register_mod(
259259
rsize.next_power_of_two()
260260
};
261261
let rty = rsize.to_ty()?;
262-
let description = util::respace(&register.description.as_deref().unwrap_or_else(|| {
262+
let description = util::respace(register.description.as_deref().unwrap_or_else(|| {
263263
warn!("Missing description for register {rname}");
264264
""
265265
}));

src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ pub fn escape_brackets(s: &str) -> String {
180180
/// Escape basic html tags and brackets
181181
pub fn escape_special_chars(s: &str) -> Cow<'_, str> {
182182
if s.contains('[') {
183-
escape_brackets(&s).into()
183+
escape_brackets(s).into()
184184
} else {
185185
s.into()
186186
}

0 commit comments

Comments
 (0)