From 7ab69ecbe8b77607f70994515a36581c57d910aa Mon Sep 17 00:00:00 2001 From: Rhinemann Date: Tue, 27 Jun 2023 22:34:57 +0300 Subject: [PATCH] Very minor cleanup. --- src/bit_utilities.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bit_utilities.rs b/src/bit_utilities.rs index 78186b8..e4433d8 100644 --- a/src/bit_utilities.rs +++ b/src/bit_utilities.rs @@ -198,11 +198,10 @@ pub fn binary_subtraction(minuend: &BasicRegister, subtrahend: &BasicRegister) - match final_carry { true => { - let mut complement = vec![false; difference.len() - 1]; - complement.append(&mut vec![true]); + let mut complement: Vec = vec![false; difference.len() - 1]; + complement.extend([true]); binary_sum(&difference, &BasicRegister::new(complement.into())) } false => difference.negated(), } - // BasicRegister::default() }