From 942d3cc3cf61f7e88e6e1afd9e5fa25f0f3864b0 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Mon, 12 Feb 2024 13:56:21 +1100 Subject: [PATCH] reformat --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 5e10514..04ecee4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -75,14 +75,15 @@ async fn main() { // and to the charge rate controller thread let (tcrc_requests, mut tcrc_receiver) = tokio::sync::mpsc::unbounded_channel(); // try to spawn the pli loop - let pl_state = match { + let pli = { let config = access_config(); Pli::new( config.serial_port.clone(), config.baud_rate, config.pl_timeout_milliseconds, ) - } { + }; + let pl_state = match pli { Ok(mut pli) => { let pl_state = pli.state.clone(); tokio::task::spawn(async move {