Skip to content

Commit e802c7f

Browse files
committed
style: fix lint issues, format code
1 parent fb63563 commit e802c7f

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/lib.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,7 @@ pub unsafe fn on_timer_fired(user_data: *const c_void) {
3838
let chip = &mut *(user_data as *mut Chip);
3939

4040
if chip.current_row == 0 {
41-
debugPrint(
42-
CString::new("First row!")
43-
.unwrap()
44-
.into_raw(),
45-
);
41+
debugPrint(CString::new("First row!").unwrap().into_raw());
4642
}
4743

4844
draw_line(chip, chip.current_row, DEEP_GREEN);
@@ -64,9 +60,9 @@ pub unsafe extern "C" fn chipInit() {
6460
let frame_buffer = framebufferInit(&mut width, &mut height);
6561

6662
let chip = Chip {
67-
frame_buffer: frame_buffer,
68-
width: width,
69-
height: height,
63+
frame_buffer,
64+
width,
65+
height,
7066
current_row: 0,
7167
};
7268

0 commit comments

Comments
 (0)