diff options
author | Oxore <oxore@protonmail.com> | 2020-03-04 02:58:39 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2020-03-04 02:58:39 +0300 |
commit | 0a6fad82f83d7a79aa7eadf73a21e6e80c8e810d (patch) | |
tree | 37a7e5aad4eb9b7fe547eeff2fb1bf28814145d6 /src/rom.rs | |
parent | 52b665108f6f2203df251eec273184b142ee2e16 (diff) |
Add third operand, format code
Diffstat (limited to 'src/rom.rs')
-rw-r--r-- | src/rom.rs | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |