From 78db5c104445df0ad7242eefd38977337bae0547 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com> Date: Tue, 18 Apr 2023 01:07:48 +0100 Subject: [PATCH] fix: simple format fix --- src/devices/printer.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/devices/printer.rs b/src/devices/printer.rs index 5553b47e..23c46b4e 100644 --- a/src/devices/printer.rs +++ b/src/devices/printer.rs @@ -1,6 +1,4 @@ -use std::{ - fmt::{self, Display, Formatter} -}; +use std::fmt::{self, Display, Formatter}; use crate::{ppu::PaletteAlpha, serial::SerialDevice, warnln}; @@ -118,7 +116,7 @@ pub struct PrinterDevice { data: [u8; 0x280], image: [u8; 160 * 200], image_offset: u16, - callback: fn(image_buffer: &Vec<u8>) + callback: fn(image_buffer: &Vec<u8>), } impl PrinterDevice { @@ -135,7 +133,7 @@ impl PrinterDevice { data: [0x00; 0x280], image: [0x00; 160 * 200], image_offset: 0, - callback: |_| {} + callback: |_| {}, } } -- GitLab