From f11131b18afa5f8ff96bac414cc3d207651979fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Cortier?= Date: Fri, 5 May 2023 11:10:32 -0400 Subject: [PATCH] fix: remove forgotten dbg! invocations (#117) --- crates/rdcleanpath/src/lib.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/crates/rdcleanpath/src/lib.rs b/crates/rdcleanpath/src/lib.rs index 9aa6a9fb..5fa6ef33 100644 --- a/crates/rdcleanpath/src/lib.rs +++ b/crates/rdcleanpath/src/lib.rs @@ -132,7 +132,7 @@ impl RDCleanPathPdu { let header = match der::Header::decode(&mut reader) { Ok(header) => header, - Err(e) => match dbg!(e.kind()) { + Err(e) => match e.kind() { der::ErrorKind::Incomplete { .. } => return DetectionResult::NotEnoughBytes, _ => return DetectionResult::Failed, }, @@ -144,17 +144,14 @@ impl RDCleanPathPdu { let total_length = header_encoded_len + body_length; - match dbg!(der::asn1::ContextSpecific::::decode_explicit( - &mut reader, - der::TagNumber::N0 - )) { + match der::asn1::ContextSpecific::::decode_explicit(&mut reader, der::TagNumber::N0) { Ok(Some(version)) if version.value == VERSION_1 => DetectionResult::Detected { version: VERSION_1, total_length, }, Ok(Some(_)) => DetectionResult::Failed, Ok(None) => DetectionResult::NotEnoughBytes, - Err(e) => match dbg!(e.kind()) { + Err(e) => match e.kind() { der::ErrorKind::Incomplete { .. } => DetectionResult::NotEnoughBytes, _ => DetectionResult::Failed, },