mirror of
https://github.com/trussed-dev/iso7816.git
synced 2026-06-20 04:16:14 -07:00
Get rid of heapless-bytes: use hopefully soon to be upstreamed heapless additions
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
pub mod class;
|
||||
pub mod instruction;
|
||||
|
||||
pub type Data = heapless_bytes::Bytes<crate::MAX_COMMAND_DATA>;
|
||||
pub type Data = heapless::ByteBuf<crate::MAX_COMMAND_DATA>;
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
pub struct Command {
|
||||
@@ -83,7 +83,7 @@ impl core::convert::TryFrom<&[u8]> for Command {
|
||||
p1: header[2],
|
||||
p2: header[3],
|
||||
le: parsed.le,
|
||||
data: Data::try_from_slice(data_slice).unwrap(),
|
||||
data: Data::from_slice(data_slice).unwrap(),
|
||||
extended: parsed.extended,
|
||||
})
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
// #![no_std]
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
pub type U3076 = <heapless_bytes::consts::U2048 as core::ops::Add<heapless_bytes::consts::U1024>>::Output;
|
||||
pub type U3076 = <heapless::consts::U2048 as core::ops::Add<heapless::consts::U1024>>::Output;
|
||||
#[allow(non_camel_case_types)]
|
||||
pub type MAX_COMMAND_DATA = U3076;
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
pub mod status;
|
||||
pub use status::Status;
|
||||
|
||||
pub type Data = heapless_bytes::Bytes<crate::MAX_COMMAND_DATA>;
|
||||
pub type Data = heapless::ByteBuf<crate::MAX_COMMAND_DATA>;
|
||||
|
||||
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||
pub enum Response {
|
||||
|
||||
Reference in New Issue
Block a user