Rename Ccc to CccId (#287)

This commit is contained in:
Tony Arcieri (iqlusion)
2021-07-12 19:28:46 -07:00
committed by GitHub
parent 42ae5fb974
commit 8e52d75992
4 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -78,9 +78,9 @@ impl CardId {
/// Cardholder Capability Container (CCC) Identifier.
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub struct Ccc(pub [u8; Self::BYTE_SIZE]);
pub struct CccId(pub [u8; Self::BYTE_SIZE]);
impl Ccc {
impl CccId {
/// CCC size in bytes
pub const BYTE_SIZE: usize = 51;
@@ -115,7 +115,7 @@ impl Ccc {
}
}
impl Display for Ccc {
impl Display for CccId {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str(str::from_utf8(&hex::encode(&self.0[..])).unwrap())
}