Use released dependencies

This commit is contained in:
Robin Krahl
2025-01-10 14:43:39 +01:00
parent 60c58eb806
commit 4fe4e4e287
5 changed files with 21 additions and 27 deletions
+3 -9
View File
@@ -12,10 +12,7 @@ use std::path::PathBuf;
#[cfg(feature = "ccid")]
use apdu_dispatch::command::SIZE as ApduCommandSize;
#[cfg(feature = "ctaphid")]
use ctaphid_dispatch::{
command::{Command, VendorCommand},
types::{AppResult, Error},
};
use ctaphid_dispatch::app::{Command, Error, VendorCommand};
use clap::Parser;
use clap_num::maybe_hex;
@@ -80,7 +77,7 @@ impl<C: Client, const N: usize> ctaphid_dispatch::app::App<'_, N> for DummyApp<C
command: Command,
_request: &[u8],
response: &mut heapless_bytes::Bytes<N>,
) -> AppResult {
) -> Result<(), Error> {
match command {
CTAPHID_COMMAND_RNG => self.rng(response),
_ => return Err(Error::InvalidCommand),
@@ -111,10 +108,7 @@ impl<'a, S: StoreProvider> trussed_usbip::Apps<'a, S, CoreOnly>
fn with_ctaphid_apps<T>(
&mut self,
f: impl FnOnce(
&mut [&mut dyn ctaphid_dispatch::app::App<
'a,
{ ctaphid_dispatch::types::MESSAGE_SIZE },
>],
&mut [&mut dyn ctaphid_dispatch::app::App<'a, { ctaphid_dispatch::MESSAGE_SIZE }>],
) -> T,
) -> T {
f(&mut [&mut self.dummy])