diff --git a/Cargo.toml b/Cargo.toml index e0032fd..dcc1ae7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,15 +10,15 @@ description = "usb-device driver for CTAPHID" categories = ["embedded", "no-std"] [dependencies] -ctaphid-dispatch = "0.3" +ctaphid-dispatch = "0.4" embedded-time = "0.12" delog = "0.1.0" -heapless-bytes = "0.3" +heapless-bytes = "0.5" interchange = "0.3.0" serde = { version = "1.0", default-features = false } usb-device = "0.2.3" ref-swap = "0.1.2" -trussed-core = "0.1" +trussed-core = "0.2" [features] diff --git a/src/pipe.rs b/src/pipe.rs index e36393f..fab5147 100644 --- a/src/pipe.rs +++ b/src/pipe.rs @@ -528,7 +528,7 @@ impl<'alloc, 'pipe, 'interrupt, Bus: UsbBus, const N: usize> } match self.interchange.request(( request.command, - Bytes::from_slice(&self.buffer[..request.length as usize]).unwrap(), + Bytes::try_from(&self.buffer[..request.length as usize]).unwrap(), )) { Ok(_) => { self.state = State::WaitingOnAuthenticator(request);