From 7c79f7f38341b0420dcda3401620bdbe800bc732 Mon Sep 17 00:00:00 2001 From: Joshua Mir Date: Wed, 18 Oct 2023 15:35:39 +0300 Subject: [PATCH] readded debug println --- src/function_chain.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/function_chain.rs b/src/function_chain.rs index 40859f0..c33b9a9 100644 --- a/src/function_chain.rs +++ b/src/function_chain.rs @@ -9,6 +9,7 @@ use num_rational::Ratio; use num_traits::{CheckedDiv, CheckedSub, ToPrimitive, Zero}; use std::cell::Cell; use std::ops::{Add, Mul, Sub}; +use debug_print::debug_println as dprintln; macro_rules! fc { ($variant:ident $(, $( $child:tt ),* )? ) => { @@ -651,7 +652,7 @@ pub fn exec_function_chain( fc: Box, ) -> Vec { let maybe_dim: Cell> = Cell::new(None); - let res = match *fc { + let res = match *fc.clone() { //set maybe_dim if neccesary using if guard expression side-effects! // intentionally unreachable. //Two @@ -2317,6 +2318,7 @@ pub fn exec_function_chain( vec![0] } }; + dprintln!("{:?}: {:?}", fc, res); res }