Skip to content

Commit

Permalink
self review.
Browse files Browse the repository at this point in the history
  • Loading branch information
SirVer committed Dec 14, 2023
1 parent 0da2653 commit e9523e8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion zvt/src/packets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,6 @@ pub mod tests {

#[rstest::rstest]
fn test_status_information_read_card() {
// After pre-auth.
let bytes = get_bytes("status_information_read_card.blob");
let expected = StatusInformation {
result_code: Some(0),
Expand Down
1 change: 0 additions & 1 deletion zvt_builder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ pub trait ZvtSerializerImpl<
);
}
let (length, payload) = L::deserialize(bytes)?;
debug!("length: {length}, payload.len: {}", payload.len());
if length > payload.len() {
return Err(ZVTError::IncompleteData);
}
Expand Down
2 changes: 1 addition & 1 deletion zvt_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ fn derive_deserialize(
match tag.0 {
#(#opt_field_quotes)*
_ => {
log::debug!("Unhandled tag: 0x{:X}. We try to skip it, but expect trouble.", tag.0);
log::error!("Unhandled tag: 0x{:X}. We give up parsing here, your data is only partially interpreted.", tag.0);
break;
}
}
Expand Down

0 comments on commit e9523e8

Please sign in to comment.