This commit is contained in:
lienjukaisim 2024-08-15 17:19:40 +02:00
parent 6b6658f56d
commit b61634fea9

View File

@ -711,24 +711,19 @@ fn decode_carte_vitale(groups: Vec<Block>) -> Result<CarteVitale, String> {
.donnees_ruf_beneficiaire_complementaire =
String::from_utf8_lossy(field.content).to_string();
}
_ => {}// {
// return Err(format!(
// "Unknown (group, field) pair: ({}, {})",
// group.id, field.id
// ))
// }
_ => {
return Err(format!(
"Unknown (group, field) pair: ({}, {})",
group.id, field.id
))
}
}
}
}
}
Ok(cartevitale)
}
fn bytes_to_decimal_string(byte_array: &[u8]) -> String {
byte_array.iter()
.map(|byte| byte.to_string())
.collect::<Vec<String>>()
.join(" ")
}
// #[cfg(test)]
// mod test_decode_carte_ps {
// use super::*;