From 7e8171487e2b222847dd138c0e8dfc1c8f53da65 Mon Sep 17 00:00:00 2001 From: Noppadet Vivatchotikul Date: Fri, 26 Oct 2018 09:50:43 +0700 Subject: [PATCH] fix syntax error --- src/cpu.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cpu.rs b/src/cpu.rs index c2e38e4..3e9191b 100644 --- a/src/cpu.rs +++ b/src/cpu.rs @@ -1160,7 +1160,7 @@ mod tests { #[cfg(test)] fn compare_test_helper(compare: &mut F, load_instruction: Instruction) where - F: FnMut(&mut cpu, u8), + F: FnMut(&mut CPU, u8), { let mut cpu = CPU::new(); @@ -1215,7 +1215,7 @@ mod tests { #[test] fn compare_with_a_register_test() { compare_test_helper( - &mut |CPU: &mut cpu, val: u8| { + &mut |cpu: &mut CPU, val: u8| { cpu.compare_with_a_register(val); }, Instruction::LDA, @@ -1225,7 +1225,7 @@ mod tests { #[test] fn compare_with_x_register_test() { compare_test_helper( - &mut |CPU: &mut cpu, val: u8| { + &mut |cpu: &mut CPU, val: u8| { cpu.compare_with_x_register(val); }, Instruction::LDX, @@ -1235,7 +1235,7 @@ mod tests { #[test] fn compare_with_y_register_test() { compare_test_helper( - &mut |CPU: &mut cpu, val: u8| { + &mut |cpu: &mut CPU, val: u8| { cpu.compare_with_y_register(val); }, Instruction::LDY,