Skip to content

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
goweiwen committed Dec 26, 2023
1 parent d0d029a commit 67a5876
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/src/view/battery_indicator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,13 @@ where
fn bounding_box(&mut self, styles: &Stylesheet) -> Rect {
let w = styles.ui_font.size * 3;
let h = styles.ui_font.size * 6 / 5;
let rect = Rect::new(

Rect::new(
self.point.x - w as i32,
styles.ui_font.size as i32 / 6,
w,
h,
);
rect
)
}

fn set_position(&mut self, point: Point) {
Expand Down

0 comments on commit 67a5876

Please sign in to comment.