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