diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2019-06-18 23:28:56 +1000 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-06-18 06:28:56 -0700 |
commit | ed390a51cac08ec238b45c793a5ddd65fcae1b78 (patch) | |
tree | 67c6e0443a07831b13d011be50f7efc4d932cea1 /cli/repl.rs | |
parent | d5e80ad67744bbd2646af0a0abe27cc38205f990 (diff) |
Add dyn to be rust nightly compatible (#2538)
Diffstat (limited to 'cli/repl.rs')
-rw-r--r-- | cli/repl.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 |