Rename Ccc::cccid => Ccc::card_id (#270)

Better reflects the return type
This commit is contained in:
Tony Arcieri (iqlusion)
2021-07-11 09:00:58 -07:00
committed by GitHub
parent a1d9c7afc5
commit 1051eaf26d
+1 -1
View File
@@ -81,7 +81,7 @@ pub struct Ccc(pub [u8; CCC_SIZE]);
impl Ccc {
/// Return CardId component of CCC
pub fn cccid(&self) -> Result<CardId, Error> {
pub fn card_id(&self) -> Result<CardId, Error> {
let mut cccid = [0u8; CCCID_SIZE];
cccid.copy_from_slice(&self.0[CCC_ID_OFFS..(CCC_ID_OFFS + CCCID_SIZE)]);
Ok(CardId(cccid))