Skip to content

Commit e04a25f

Browse files
committed
chore: fix clippy lints in metrics-exporter-dogstatsd
1 parent 56936bf commit e04a25f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

metrics-exporter-dogstatsd/src/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl DogStatsDBuilder {
114114
if let RemoteAddr::Udp(_) = &self.remote_addr {
115115
if max_payload_len > UDP_DATAGRAM_MAX_PAYLOAD_LEN {
116116
return Err(BuildError::InvalidConfiguration {
117-
reason: format!("maximum payload length ({} bytes) exceeds UDP datagram maximum length ({} bytes)", max_payload_len, UDP_DATAGRAM_MAX_PAYLOAD_LEN),
117+
reason: format!("maximum payload length ({max_payload_len} bytes) exceeds UDP datagram maximum length ({UDP_DATAGRAM_MAX_PAYLOAD_LEN} bytes)"),
118118
});
119119
}
120120
}

metrics-exporter-dogstatsd/src/forwarder/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ impl fmt::Display for RemoteAddr {
8181

8282
for (idx, addr) in addrs.iter().enumerate() {
8383
if idx == 0 {
84-
write!(f, "{}", addr)?;
84+
write!(f, "{addr}")?;
8585
} else {
86-
write!(f, ",{}", addr)?;
86+
write!(f, ",{addr}")?;
8787
}
8888
}
8989
write!(f, "]")

0 commit comments

Comments
 (0)