Skip to content

Commit 94881f8

Browse files
Update to heapless 0.9
1 parent 998db11 commit 94881f8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ categories = ["embedded", "no-std"]
1313
ctaphid-dispatch = "0.3"
1414
embedded-time = "0.12"
1515
delog = "0.1.0"
16-
heapless-bytes = "0.3"
16+
heapless-bytes = "0.5"
1717
interchange = "0.3.0"
1818
serde = { version = "1.0", default-features = false }
1919
usb-device = "0.2.3"
@@ -31,3 +31,8 @@ log-info = []
3131
log-debug = []
3232
log-warn = []
3333
log-error = []
34+
35+
[patch.crates-io]
36+
ctaphid-dispatch = { git = "https://github.com/trussed-dev/ctaphid-dispatch.git", rev = "edc5d69eeb71e6718c60aad54574f6c3b824309c" }
37+
ctaphid-app = { git = "https://github.com/trussed-dev/ctaphid-dispatch.git", rev = "edc5d69eeb71e6718c60aad54574f6c3b824309c" }
38+
trussed-core = { git = "https://github.com/trussed-dev/trussed.git", rev = "1e7b09a983dc8ae64a7ad8401ce541a9a77e5939"}

src/pipe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ impl<'alloc, 'pipe, 'interrupt, Bus: UsbBus, const N: usize>
528528
}
529529
match self.interchange.request((
530530
request.command,
531-
Bytes::from_slice(&self.buffer[..request.length as usize]).unwrap(),
531+
Bytes::try_from(&self.buffer[..request.length as usize]).unwrap(),
532532
)) {
533533
Ok(_) => {
534534
self.state = State::WaitingOnAuthenticator(request);

0 commit comments

Comments
 (0)