summaryrefslogtreecommitdiff
path: root/src/rom.rs
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2020-03-04 02:58:39 +0300
committerOxore <oxore@protonmail.com>2020-03-04 02:58:39 +0300
commit0a6fad82f83d7a79aa7eadf73a21e6e80c8e810d (patch)
tree37a7e5aad4eb9b7fe547eeff2fb1bf28814145d6 /src/rom.rs
parent52b665108f6f2203df251eec273184b142ee2e16 (diff)
Add third operand, format code
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