diff options
author | Akshay <[email protected]> | 2019-06-09 07:30:55 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-06-09 07:30:55 +0100 |
commit | 4811ea296c380a89794334b79e74c6b6e3aa6569 (patch) | |
tree | c422cc53136405a95796a71c29f1cd49b3644b28 | |
parent | d5ad5b4346ed7a9b12aa1a854e3245f0ceaa93b4 (diff) | |
parent | eef06938804cf13b474c88705a72fb2aa4ae9355 (diff) |
update deps
Update dependencies
-rw-r--r-- | Cargo.toml | 4 | ||||
-rw-r--r-- | src/main.rs | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -12,7 +12,7 @@ categories = ["command-line-interface", "science", "parser-implementations"] | |||
12 | license = "MIT" | 12 | license = "MIT" |
13 | 13 | ||
14 | [dependencies] | 14 | [dependencies] |
15 | rustyline = "3.0.0" | 15 | rustyline = "4.1.0" |
16 | clap = "2.32.0" | 16 | clap = "2.32.0" |
17 | radix_fmt = "0.1.1" | 17 | radix_fmt = "1.0.0" |
18 | lazy_static = "1.3.0" | 18 | 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() { | |||
61 | let readline = rl.readline("> "); | 61 | let readline = rl.readline("> "); |
62 | match readline { | 62 | match readline { |
63 | Ok(line) => { | 63 | Ok(line) => { |
64 | rl.add_history_entry(line.as_ref()); | 64 | rl.add_history_entry(line.as_str()); |
65 | let evaled = eval_math_expression(&line[..]); | 65 | let evaled = eval_math_expression(&line[..]); |
66 | match evaled { | 66 | match evaled { |
67 | Ok(ans) => pprint(ans), | 67 | Ok(ans) => pprint(ans), |