From f572c1d2ff0b59f41bc2cb13cdccecd7daad329e Mon Sep 17 00:00:00 2001 From: karencfv Date: Thu, 29 Feb 2024 19:54:25 +1300 Subject: [PATCH] fmt --- sled-agent/src/services.rs | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/sled-agent/src/services.rs b/sled-agent/src/services.rs index ba561d4dff..0a54282810 100644 --- a/sled-agent/src/services.rs +++ b/sled-agent/src/services.rs @@ -1961,7 +1961,8 @@ impl ServiceManager { OmicronZoneType::InternalNtp { dns_servers, ntp_servers, - domain, .. + domain, + .. }, underlay_address, .. @@ -2006,18 +2007,21 @@ impl ServiceManager { .add_property("domain", "astring", domain) .add_property("boundary", "boolean", &is_boundary); - for s in ntp_servers { - ntp_config = ntp_config - .clone() - .add_property("server", "astring", &s.to_string()); - }; + ntp_config = ntp_config.clone().add_property( + "server", + "astring", + &s.to_string(), + ); + } for s in dns_servers.clone() { - ntp_config = ntp_config - .clone() - .add_property("dns_server", "astring", &s.to_string()); - }; + ntp_config = ntp_config.clone().add_property( + "dns_server", + "astring", + &s.to_string(), + ); + } let dns_client_service; if dns_servers.is_empty() {