We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb63563 commit e802c7fCopy full SHA for e802c7f
src/lib.rs
@@ -38,11 +38,7 @@ pub unsafe fn on_timer_fired(user_data: *const c_void) {
38
let chip = &mut *(user_data as *mut Chip);
39
40
if chip.current_row == 0 {
41
- debugPrint(
42
- CString::new("First row!")
43
- .unwrap()
44
- .into_raw(),
45
- );
+ debugPrint(CString::new("First row!").unwrap().into_raw());
46
}
47
48
draw_line(chip, chip.current_row, DEEP_GREEN);
@@ -64,9 +60,9 @@ pub unsafe extern "C" fn chipInit() {
64
60
let frame_buffer = framebufferInit(&mut width, &mut height);
65
61
66
62
let chip = Chip {
67
- frame_buffer: frame_buffer,
68
- width: width,
69
- height: height,
63
+ frame_buffer,
+ width,
+ height,
70
current_row: 0,
71
};
72
0 commit comments