From eef06938804cf13b474c88705a72fb2aa4ae9355 Mon Sep 17 00:00:00 2001 From: equal-l2 Date: Sun, 9 Jun 2019 15:03:47 +0900 Subject: Update dependencies --- Cargo.toml | 4 ++-- src/main.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4523192..5b9c33f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ categories = ["command-line-interface", "science", "parser-implementations"] license = "MIT" [dependencies] -rustyline = "3.0.0" +rustyline = "4.1.0" clap = "2.32.0" -radix_fmt = "0.1.1" +radix_fmt = "1.0.0" lazy_static = "1.3.0" 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