Skip to content

Commit

Permalink
Fix some clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Oct 16, 2023
1 parent eaf2b11 commit edb6470
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/states/measure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ pub async fn measure(board: &mut Board) -> AppState {
}

unsafe {
let frontend = core::ptr::read(&mut board.frontend);
let frontend = core::ptr::read(&board.frontend);

let (next_state, frontend) =
measure_impl(&mut board.inner, frontend, &mut ecg, ecg_buffer).await;
Expand Down
6 changes: 1 addition & 5 deletions src/states/menu/battery_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,7 @@ impl MenuScreen for BatteryInfoMenu {
}

if let Ok(current) = sensor.fg.read_current().await {
list_item(uformat!(
20,
"Current {}mA",
LeftPad(10, current as i32 / 1000)
));
list_item(uformat!(20, "Current {}mA", LeftPad(10, current / 1000)));
}

if let Ok(cap) = sensor.fg.read_design_capacity().await {
Expand Down

0 comments on commit edb6470

Please sign in to comment.