Skip to content

Commit db812f7

Browse files
committed
Runner buffer can be ?Sized
1 parent d411ba7 commit db812f7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

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

88
## [Unreleased](https://github.com/rust-embedded-community/menu/compare/v0.6.0...master)
99

10-
* None
10+
### Changed
11+
12+
* For `Runner::input_byte` the buffer `B` does not need to be `Sized`
1113

1214
## [v0.6.0] - 2024-08-30
1315

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ where
374374
impl<'a, I, T, B> Runner<'a, I, T, B>
375375
where
376376
I: embedded_io::Write,
377-
B: AsMut<[u8]>,
377+
B: AsMut<[u8]> + ?Sized,
378378
{
379379
/// Add a byte to the menu runner's buffer. If this byte is a
380380
/// carriage-return, the buffer is scanned and the appropriate action

0 commit comments

Comments
 (0)