Skip to content

Commit 91d3e15

Browse files
author
Alex J Lennon
committed
fix: apply rustfmt formatting
- Fix code formatting to pass CI checks - Ensure consistent code style across the project
1 parent 36448c1 commit 91d3e15

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/serial/protocol.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ impl Protocol {
9797

9898
// Special handling for reset and shutdown commands - they will cause connection loss
9999
if command == "reset" || command == "shutdown" {
100-
return self.execute_board_power_command(&full_command, command).await;
100+
return self
101+
.execute_board_power_command(&full_command, command)
102+
.await;
101103
}
102104

103105
let response = self.connection.send_command(&full_command).await?;
@@ -121,8 +123,7 @@ impl Protocol {
121123
.to_string(),
122124
),
123125
"shutdown" => Ok(
124-
"Board shutdown sequence initiated. System will power off permanently."
125-
.to_string(),
126+
"Board shutdown sequence initiated. System will power off permanently.".to_string(),
126127
),
127128
_ => Ok(format!("Board {} command executed", action)),
128129
}

0 commit comments

Comments
 (0)