From eef06938804cf13b474c88705a72fb2aa4ae9355 Mon Sep 17 00:00:00 2001 From: equal-l2 Date: Sun, 9 Jun 2019 15:03:47 +0900 Subject: Update dependencies --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index 5846a87..ddfa75b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -61,7 +61,7 @@ fn main() { let readline = rl.readline("> "); match readline { Ok(line) => { - rl.add_history_entry(line.as_ref()); + rl.add_history_entry(line.as_str()); let evaled = eval_math_expression(&line[..]); match evaled { Ok(ans) => pprint(ans), -- cgit v1.2.3