From 99ca0f07d193b02a2a8408369321ff9af225945b Mon Sep 17 00:00:00 2001 From: Mingwei Zhang Date: Tue, 10 May 2022 20:57:25 -0700 Subject: [PATCH] remove unnecessary dbg! calls in code --- src/parser/bgp/attributes.rs | 2 -- src/parser/mrt/messages/table_dump_v2_message.rs | 1 - src/parser/mrt/mrt_record.rs | 2 -- 3 files changed, 5 deletions(-) diff --git a/src/parser/bgp/attributes.rs b/src/parser/bgp/attributes.rs index 03ce138..676f24d 100644 --- a/src/parser/bgp/attributes.rs +++ b/src/parser/bgp/attributes.rs @@ -331,8 +331,6 @@ impl AttributeParser { next_hop = match self.parse_mp_next_hop(next_hop_length, input) { Ok(x) => x, Err(e) => { - dbg!(&e); - dbg!(&afi); return Err(e) } }; diff --git a/src/parser/mrt/messages/table_dump_v2_message.rs b/src/parser/mrt/messages/table_dump_v2_message.rs index 8a91bb3..2746cbc 100644 --- a/src/parser/mrt/messages/table_dump_v2_message.rs +++ b/src/parser/mrt/messages/table_dump_v2_message.rs @@ -133,7 +133,6 @@ pub fn parse_rib_afi_entries(input: &mut DataBytes, rib_type: TableDumpV2Type) - Ok(entry) => entry, Err(e) => return Err(e) }; - // dbg!(&entry, &rib_type); rib_entries.push(entry); } diff --git a/src/parser/mrt/mrt_record.rs b/src/parser/mrt/mrt_record.rs index 845cd86..b0ad25c 100644 --- a/src/parser/mrt/mrt_record.rs +++ b/src/parser/mrt/mrt_record.rs @@ -126,7 +126,6 @@ fn parse_raw_bytes(common_header: &CommonHeader, data: &mut DataBytes) -> Result match msg { Ok(msg) => MrtMessage::TableDumpMessage(msg), Err(e) => { - dbg!(&e); return Err(e); } } @@ -151,7 +150,6 @@ fn parse_raw_bytes(common_header: &CommonHeader, data: &mut DataBytes) -> Result } v => { // deprecated - dbg!(common_header); return Err(ParserErrorKind::Unsupported(format!("unsupported MRT type: {:?}", v))) } };