Minor cleanup

This commit is contained in:
2023-08-01 09:07:33 -07:00
parent 8059714319
commit 2949b07d7c
6 changed files with 6 additions and 7 deletions

View File

@ -38,7 +38,7 @@ pub fn eval_operator(g: &Expression, context: &mut Context) -> Result<Option<Exp
let mut loc: LineLocation;
if let Expression::Quantity(l, s) = &args[0] {
sum = s.clone();
loc = l.clone();
loc = *l;
} else { return Ok(None); };
@ -111,7 +111,7 @@ pub fn eval_operator(g: &Expression, context: &mut Context) -> Result<Option<Exp
let mut loc: LineLocation;
if let Expression::Quantity(l, s) = &args[0] {
prod = s.clone();
loc = l.clone();
loc = *l;
} else { return Ok(None); };
let mut i: usize = 1;