From f6e9349f60d003fca8dce6d4f6c76a1ad0c0e56d Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Fri, 30 Aug 2024 17:12:39 +1200 Subject: Remove trailing semicolons in stack macros The compiler warned that these are a deprecated syntactic form. --- src/processor.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/processor.rs b/src/processor.rs index 9c9fb45..c9cde82 100644 --- a/src/processor.rs +++ b/src/processor.rs @@ -25,10 +25,10 @@ impl Processor { } pub fn evaluate(&mut self, num_cycles: usize) -> Option { - macro_rules! w_psh_8 { ($v:expr) => { self.wst.push_u8($v); }; } - macro_rules! r_psh_8 { ($v:expr) => { self.rst.push_u8($v); }; } - macro_rules! w_psh_16 { ($v:expr) => { self.wst.push_u16($v); }; } - macro_rules! r_psh_16 { ($v:expr) => { self.rst.push_u16($v); }; } + macro_rules! w_psh_8 { ($v:expr) => { self.wst.push_u8($v) }; } + macro_rules! r_psh_8 { ($v:expr) => { self.rst.push_u8($v) }; } + macro_rules! w_psh_16 { ($v:expr) => { self.wst.push_u16($v) }; } + macro_rules! r_psh_16 { ($v:expr) => { self.rst.push_u16($v) }; } macro_rules! w_pop_8 { ($v:ident) => { let $v = self.wst.pop_u8(); }; } macro_rules! r_pop_8 { ($v:ident) => { let $v = self.rst.pop_u8(); }; } macro_rules! w_pop_16 { ($v:ident) => { let $v = self.wst.pop_u16(); }; } -- cgit v1.2.3-70-g09d2