aboutsummaryrefslogtreecommitdiff
path: root/src/readline
diff options
context:
space:
mode:
authorIvan Tham <[email protected]>2019-08-03 06:49:17 +0100
committerIvan Tham <[email protected]>2019-08-03 06:49:17 +0100
commit6c38d9b13b8e1cc976f9b22d15d100fd03ee54d4 (patch)
treea4f0ae975f768031315ff59e6f5a24fac361a087 /src/readline
parent8b49603f0c6d06bcb444bd0ee14aa5c1fbc4648c (diff)
Reuse ans output and fix tests
Diffstat (limited to 'src/readline')
-rw-r--r--src/readline/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/readline/mod.rs b/src/readline/mod.rs
index 9ae14ba..97f03bd 100644
--- a/src/readline/mod.rs
+++ b/src/readline/mod.rs
@@ -23,7 +23,7 @@ impl Highlighter for LineHighlighter {
23 Owned(format!("\x1b[90m{}\x1b[0m", hint)) 23 Owned(format!("\x1b[90m{}\x1b[0m", hint))
24 } 24 }
25 fn highlight<'l>(&self, line: &'l str, _: usize) -> Cow<'l, str> { 25 fn highlight<'l>(&self, line: &'l str, _: usize) -> Cow<'l, str> {
26 let op = eval_math_expression(line, &mut 0f64); 26 let op = eval_math_expression(line, 0f64);
27 match op { 27 match op {
28 Ok(_) => { 28 Ok(_) => {
29 let functions = [ 29 let functions = [