Skip to content

Commit ce2e513

Browse files
author
Alex J Lennon
committed
style: Fix Rust code formatting
- Sort imports alphabetically (ExternalRtcAction, RtcCommands) - Break long method chains for better readability - Fixes CI formatting check failures No functional changes - formatting only.
1 parent a611aaf commit ce2e513

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ async fn execute_command(
479479
}
480480
}
481481
Commands::Rtc(rtc_cmd) => {
482-
use cli::{RtcCommands, ExternalRtcAction};
482+
use cli::{ExternalRtcAction, RtcCommands};
483483
match rtc_cmd {
484484
RtcCommands::Status => {
485485
let response = controller.rtc_status().await?;

src/power/control.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,17 @@ impl PowerController {
194194
/// Configure external RTC interrupt action
195195
pub async fn rtc_config(&mut self, action: &str) -> Result<String> {
196196
info!("Configuring external RTC action: {}", action);
197-
self.protocol.execute_power_command("rtc_config", action).await
197+
self.protocol
198+
.execute_power_command("rtc_config", action)
199+
.await
198200
}
199201

200202
/// Show external RTC interrupt configuration
201203
pub async fn rtc_show_config(&mut self) -> Result<String> {
202204
info!("Getting external RTC configuration");
203-
self.protocol.execute_power_command("rtc_config", "status").await
205+
self.protocol
206+
.execute_power_command("rtc_config", "status")
207+
.await
204208
}
205209

206210
/// Parse power statistics response

0 commit comments

Comments
 (0)