From 0a6fad82f83d7a79aa7eadf73a21e6e80c8e810d Mon Sep 17 00:00:00 2001 From: Oxore Date: Wed, 4 Mar 2020 02:58:39 +0300 Subject: Add third operand, format code --- src/rom.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/rom.rs') diff --git a/src/rom.rs b/src/rom.rs index c054575..82775a4 100644 --- a/src/rom.rs +++ b/src/rom.rs @@ -1,5 +1,5 @@ -use std::fmt; use crate::memory::Memory; +use std::fmt; pub struct Rom { array: [u8; u16::max_value() as usize + 1], @@ -86,7 +86,9 @@ impl HexLine { impl Rom { /// Empty constructor pub fn new() -> Self { - Self { array: [0; u16::max_value() as usize + 1] } + Self { + array: [0; u16::max_value() as usize + 1], + } } /// Constructor from hex -- cgit v1.2.3