From 0bdd6364a733aa04aac9f68e73b273b4eaafccc0 Mon Sep 17 00:00:00 2001 From: Raymon Zutekouw <40148684+Raymonzut@users.noreply.github.com> Date: Wed, 5 Jan 2022 12:58:49 +0100 Subject: [PATCH] Remove field is_allocated from MemCell --- src/main.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index dca8931..5f15ecf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,18 +18,13 @@ use pest::Parser; struct MblfParser; struct MemCell { - is_allocated: bool, address: u32, value: u8, } impl MemCell { pub fn allocate(address: u32) -> Self { - Self { - is_allocated: true, - address, - value: 0, - } + Self { address, value: 0 } } }