From 70b67052c9921861f451d960e2f19d784a252eb0 Mon Sep 17 00:00:00 2001 From: kyren Date: Mon, 24 Sep 2018 21:27:29 -0400 Subject: [PATCH] Upgrade rustyline to 2.0 to avoid confusion --- Cargo.toml | 2 +- examples/repl.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0ff8ce6..561ab4c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,7 +41,7 @@ cc = { version = "1.0", optional = true } pkg-config = { version = "0.3.11", optional = true } [dev-dependencies] -rustyline = "1.0.0" +rustyline = "2.0.0" criterion = "0.2.0" [[bench]] diff --git a/examples/repl.rs b/examples/repl.rs index ff634c7..4ee9ca5 100644 --- a/examples/repl.rs +++ b/examples/repl.rs @@ -22,7 +22,7 @@ fn main() { match lua.eval::(&line, None) { Ok(values) => { - editor.add_history_entry(&line); + editor.add_history_entry(line); println!( "{}", values