From ed390a51cac08ec238b45c793a5ddd65fcae1b78 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Tue, 18 Jun 2019 23:28:56 +1000 Subject: Add dyn to be rust nightly compatible (#2538) --- cli/repl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli') diff --git a/cli/repl.rs b/cli/repl.rs index 55bf4a114..86fa92e08 100644 --- a/cli/repl.rs +++ b/cli/repl.rs @@ -94,7 +94,7 @@ impl Repl { .editor .readline(&prompt) .map(|line| { - self.editor.add_history_entry(line.as_ref()); + self.editor.add_history_entry(line.clone()); line }).map_err(|e| deno_error(ErrorKind::Other, e.description().to_string())) // Forward error to TS side for processing -- cgit v1.2.3