aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskkeye <[email protected]>2025-02-09 23:17:30 -0500
committerUlf Lilleengen <[email protected]>2025-02-13 10:27:30 +0100
commit7d2ffa76e5a34868a25a84e09e1e9f169d2d951f (patch)
treee765eca247c56a6e672510d070671a14e2d6a126
parent6d7a5f949c7a9d3cc5933725baacb075c6af75f1 (diff)
fix: forgot fmt
-rw-r--r--embassy-net/src/icmp.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-net/src/icmp.rs b/embassy-net/src/icmp.rs
index dafe6ed8a..68f6fd536 100644
--- a/embassy-net/src/icmp.rs
+++ b/embassy-net/src/icmp.rs
@@ -579,7 +579,7 @@ pub mod ping {
579 /// * `hop_limit` - The hop limit to be used by the socket. 579 /// * `hop_limit` - The hop limit to be used by the socket.
580 /// * `count` - The number of pings to be sent in one ping operation. 580 /// * `count` - The number of pings to be sent in one ping operation.
581 /// * `timeout` - The timeout duration before returning a [`PingError::DestinationHostUnreachable`] error. 581 /// * `timeout` - The timeout duration before returning a [`PingError::DestinationHostUnreachable`] error.
582 /// * `rate_limit` - The minimum time per echo request 582 /// * `rate_limit` - The minimum time per echo request.
583 pub struct PingParams<'a> { 583 pub struct PingParams<'a> {
584 target: Option<IpAddr>, 584 target: Option<IpAddr>,
585 #[cfg(feature = "proto-ipv6")] 585 #[cfg(feature = "proto-ipv6")]
@@ -706,13 +706,13 @@ pub mod ping {
706 self.timeout 706 self.timeout
707 } 707 }
708 708
709 /// Sets the `rate_limit`: minimum time per echo request 709 /// Sets the `rate_limit`: minimum time per echo request.
710 pub fn set_rate_limit(&mut self, rate_limit: Duration) -> &mut Self { 710 pub fn set_rate_limit(&mut self, rate_limit: Duration) -> &mut Self {
711 self.rate_limit = rate_limit; 711 self.rate_limit = rate_limit;
712 self 712 self
713 } 713 }
714 714
715 /// Retrieve the rate_limit 715 /// Retrieve the rate_limit.
716 pub fn rate_limit(&self) -> Duration { 716 pub fn rate_limit(&self) -> Duration {
717 self.rate_limit 717 self.rate_limit
718 } 718 }