Skip to content
Snippets Groups Projects
Verified Commit 78db5c10 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

fix: simple format fix

parent e52fb75d
No related branches found
No related tags found
1 merge request!23Support for serial data transfer 🔌
Pipeline #2518 passed
use std::{ use std::fmt::{self, Display, Formatter};
fmt::{self, Display, Formatter}
};
use crate::{ppu::PaletteAlpha, serial::SerialDevice, warnln}; use crate::{ppu::PaletteAlpha, serial::SerialDevice, warnln};
...@@ -118,7 +116,7 @@ pub struct PrinterDevice { ...@@ -118,7 +116,7 @@ pub struct PrinterDevice {
data: [u8; 0x280], data: [u8; 0x280],
image: [u8; 160 * 200], image: [u8; 160 * 200],
image_offset: u16, image_offset: u16,
callback: fn(image_buffer: &Vec<u8>) callback: fn(image_buffer: &Vec<u8>),
} }
impl PrinterDevice { impl PrinterDevice {
...@@ -135,7 +133,7 @@ impl PrinterDevice { ...@@ -135,7 +133,7 @@ impl PrinterDevice {
data: [0x00; 0x280], data: [0x00; 0x280],
image: [0x00; 160 * 200], image: [0x00; 160 * 200],
image_offset: 0, image_offset: 0,
callback: |_| {} callback: |_| {},
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment