mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'lemu/src/executor/mod.rs')
| -rw-r--r-- | lemu/src/executor/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lemu/src/executor/mod.rs b/lemu/src/executor/mod.rs index c900045..7d5fc60 100644 --- a/lemu/src/executor/mod.rs +++ b/lemu/src/executor/mod.rs @@ -159,11 +159,11 @@ impl<'s, W: Write> ExecutorContext<'s, W> { } } - pub fn set(&mut self, a: LAddress<'s>, b: LAddress<'s>) -> bool { + pub fn set(&mut self, a: &LAddress<'s>, b: LAddress<'s>) -> bool { self.memory.set(a, b) } - pub fn get_mut(&mut self, a: LAddress<'s>) -> Option<&mut LVar<'s>> { + pub fn get_mut(&mut self, a: &LAddress<'s>) -> Option<&mut LVar<'s>> { self.memory.get_mut(a) } @@ -172,7 +172,7 @@ impl<'s, W: Write> ExecutorContext<'s, W> { self.counter = n; } - pub fn get(&self, a: LAddress<'s>) -> LVar<'s> { + pub fn get<'a>(&'a self, a: &'a LAddress<'s>) -> &LVar<'s> { self.memory.get(a) } } |