Skip to content

Commit

Permalink
Merge pull request #59 from bgpkit/remove-dbg
Browse files Browse the repository at this point in the history
remove unnecessary dbg! calls in code
  • Loading branch information
digizeph authored May 11, 2022
2 parents c9e9caf + 99ca0f0 commit 6f88a9c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/parser/bgp/attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
};
Expand Down
1 change: 0 additions & 1 deletion src/parser/mrt/messages/table_dump_v2_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 0 additions & 2 deletions src/parser/mrt/mrt_record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand All @@ -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)))
}
};
Expand Down

0 comments on commit 6f88a9c

Please sign in to comment.