diff options
author | Ben Bridle <bridle.benjamin@gmail.com> | 2024-08-30 17:12:39 +1200 |
---|---|---|
committer | Ben Bridle <bridle.benjamin@gmail.com> | 2024-08-30 17:12:39 +1200 |
commit | f6e9349f60d003fca8dce6d4f6c76a1ad0c0e56d (patch) | |
tree | 2bfffab55eaa985c1193651f0f2ba33ff320a20f | |
parent | dd2dd102451625db4f085f65347e95b9a13ff1b7 (diff) | |
download | bedrock-core-f6e9349f60d003fca8dce6d4f6c76a1ad0c0e56d.zip |
Remove trailing semicolons in stack macros
The compiler warned that these are a deprecated syntactic form.
-rw-r--r-- | src/processor.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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<D: DeviceBus> Processor<D> { } pub fn evaluate(&mut self, num_cycles: usize) -> Option<Signal> { - 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(); }; } |