Rename Ccc::cccid => Ccc::card_id (#270)
Better reflects the return type
This commit is contained in:
committed by
GitHub
parent
a1d9c7afc5
commit
1051eaf26d
+1
-1
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user