summaryrefslogtreecommitdiff
path: root/src/rom.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rom.rs')
-rw-r--r--src/rom.rs6
1 files changed, 4 insertions, 2 deletions
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