From: Kevin P. Fleming Date: Sun, 6 Jul 2025 15:54:45 +0000 (-0400) Subject: Eliminate some code duplication. X-Git-Tag: rec-5.3.0-alpha2~1^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85b019210a5df33c547319c15ad74b323b601e1f;p=thirdparty%2Fpdns.git Eliminate some code duplication. --- diff --git a/contrib/pblogger-rs/src/display.rs b/contrib/pblogger-rs/src/display.rs index c8fb08d20a..80550408a9 100644 --- a/contrib/pblogger-rs/src/display.rs +++ b/contrib/pblogger-rs/src/display.rs @@ -316,14 +316,12 @@ impl fmt::Display for ClientMessage { match self.msg.r#type() { pbdns_message::Type::DnsQueryType | pbdns_message::Type::DnsIncomingResponseType => { print_summary(self, Direction::In, f)?; - print_meta(self, f)?; - print_query(self, f) } pbdns_message::Type::DnsResponseType | pbdns_message::Type::DnsOutgoingQueryType => { print_summary(self, Direction::Out, f)?; - print_meta(self, f)?; - print_query(self, f) } } + print_meta(self, f)?; + print_query(self, f) } }