diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index a8fbcf2..d6883d5 100644 --- a/src/main.rs +++ b/src/main.rs | |||
@@ -139,7 +139,7 @@ fn main() { | |||
139 | let readline = rl.readline("> "); | 139 | let readline = rl.readline("> "); |
140 | match readline { | 140 | match readline { |
141 | Ok(line) => { | 141 | Ok(line) => { |
142 | rl.add_history_entry(line.as_ref()); | 142 | rl.add_history_entry(line.as_str()); |
143 | let evaled = eval_math_expression(&line[..]); | 143 | let evaled = eval_math_expression(&line[..]); |
144 | match evaled { | 144 | match evaled { |
145 | Ok(ans) => pprint(ans), | 145 | Ok(ans) => pprint(ans), |