diff options
| author | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-02-01 10:47:55 +0100 |
|---|---|---|
| committer | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-02-01 10:47:55 +0100 |
| commit | 23866f117ace6b4e0b2cd3c611cdb982cf20e4ca (patch) | |
| tree | 7466e0e51e8786cbf66875b70cfbf5814acce2ab /src/vm.rs | |
| parent | ae48928ebdaf809c9191067cd3226e1a1a2b67d6 (diff) | |
| download | sylt-23866f117ace6b4e0b2cd3c611cdb982cf20e4ca.tar.gz | |
fix compiler warning
Diffstat (limited to 'src/vm.rs')
| -rw-r--r-- | src/vm.rs | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -119,12 +119,6 @@ impl VM { self.stack.push(value) } - fn pop_twice(&mut self) -> (Value, Value) { - let (a, b) = (self.stack.remove(self.stack.len() - 1), - self.stack.remove(self.stack.len() - 1)); - (b, a) // this matches the order they were on the stack - } - fn _peek_up(&self, amount: usize) -> Option<&Value> { self.stack.get(self.stack.len() - amount) } |
