From 72789dff9c52cf2c5ef7772b301a1d5cfd90e272 Mon Sep 17 00:00:00 2001 From: Akshay Date: Mon, 2 Nov 2020 20:00:42 +0530 Subject: fixes for nix --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index bc22ce2..5540da9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -192,8 +192,7 @@ fn parse_arguments() -> Configuration { } pub fn eval_math_expression(input: &str, prev_ans: Option) -> Result { - let input = input.trim(); - let input = input.replace(" ", ""); + let input = input.trim().replace(" ", ""); if input.is_empty() { return Ok(0.); } -- cgit v1.2.3