Skip to content

Commit 3deab82

Browse files
committed
bump heapless to 0.8
1 parent e82b4f3 commit 3deab82

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

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

88
## [Unreleased]
99

10-
### Added
10+
### Added
1111

1212
- Support for optional package `defmt` which allows for easy conversion for
1313
error types when using tools like `probe-rs` for logging over debuggers.
1414

15+
### Changed
16+
17+
- `heapless` bumped to v0.8.
18+
1519
## [v0.5.1] - 2023-07-26
1620

1721
### Added

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ version = "0.5.1"
1616
ryu = "1.0.5"
1717

1818
[dependencies.heapless]
19-
version = "0.7"
19+
version = "0.8"
2020
optional = true
2121

2222
[dependencies.serde]

src/ser/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ pub fn to_string<T, const N: usize>(value: &T) -> Result<String<N>>
448448
where
449449
T: ser::Serialize + ?Sized,
450450
{
451-
Ok(unsafe { str::from_utf8_unchecked(&to_vec::<T, N>(value)?) }.into())
451+
Ok(unsafe { String::from_utf8_unchecked(to_vec::<T, N>(value)?) })
452452
}
453453

454454
/// Serializes the given data structure as a JSON byte vector

0 commit comments

Comments
 (0)