diff options
author | Oxore <oxore@protonmail.com> | 2020-03-05 00:51:20 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2020-03-05 00:51:20 +0300 |
commit | 64858ac87fe13b877682e7b8813c06359e45a0fc (patch) | |
tree | 008f9da5cb29fb82632a40be46ea540f76ab2a78 /src/ram.rs | |
parent | 19e0e4cb5f26df537bf07b428700bea30460fd5b (diff) |
Diffstat (limited to 'src/ram.rs')
-rw-r--r-- | src/ram.rs | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -33,9 +33,7 @@ impl Ram { let mut array = [0; u8::max_value() as usize + 1]; array[RAM_OFFSET_SP as usize] = RESET_VALUE_SP; array[RAM_OFFSET_ACC as usize] = RESET_VALUE_ACC; - Self { - array, - } + Self { array } } } |