From a55a449aa2778cbbcde87ec1052d654fc90b8737 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Fri, 1 Mar 2024 11:31:45 +0100 Subject: [PATCH] Fix formatting --- src/bin/hms-mqtt-publish/rumqttc_wrapper.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/bin/hms-mqtt-publish/rumqttc_wrapper.rs b/src/bin/hms-mqtt-publish/rumqttc_wrapper.rs index 8242d130..b9e55d64 100644 --- a/src/bin/hms-mqtt-publish/rumqttc_wrapper.rs +++ b/src/bin/hms-mqtt-publish/rumqttc_wrapper.rs @@ -79,9 +79,12 @@ impl mqtt_wrapper::MqttWrapper for RumqttcWrapper { if use_tls { // Use rustls-native-certs to load root certificates from the operating system. let mut roots = tokio_rustls::rustls::RootCertStore::empty(); - rustls_native_certs::load_native_certs().expect("could not load platform certs").into_iter().for_each(|cert| { - roots.add(cert).unwrap(); - }); + rustls_native_certs::load_native_certs() + .expect("could not load platform certs") + .into_iter() + .for_each(|cert| { + roots.add(cert).unwrap(); + }); let client_config = ClientConfig::builder() .with_root_certificates(roots)