diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/Cargo.toml | 6 | ||||
-rw-r--r-- | cli/tools/repl/editor.rs | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 12edb9413..95ffed4bd 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -86,8 +86,8 @@ pin-project = "1.0.11" # don't pin because they yank crates from cargo rand = { version = "=0.8.5", features = ["small_rng"] } regex = "=1.5.6" ring = "=0.16.20" -rustyline = { version = "=9.1.2", default-features = false } -rustyline-derive = "=0.6.0" +rustyline = { version = "=10.0.0", default-features = false, features = ["custom-bindings"] } +rustyline-derive = "=0.7.0" secure_tempfile = { version = "=3.3.0", package = "tempfile" } # different name to discourage use in tests semver-parser = "=0.10.2" serde = { version = "=1.0.139", features = ["derive"] } @@ -122,7 +122,7 @@ trust-dns-client = "=0.21.2" trust-dns-server = "=0.21.2" [target.'cfg(unix)'.dev-dependencies] -nix = "=0.23.0" +nix = "=0.24.2" [package.metadata.winres] # This section defines the metadata that appears in the deno.exe PE header. diff --git a/cli/tools/repl/editor.rs b/cli/tools/repl/editor.rs index 1024ef201..c6549f61d 100644 --- a/cli/tools/repl/editor.rs +++ b/cli/tools/repl/editor.rs @@ -363,7 +363,8 @@ impl ReplEditor { .completion_type(CompletionType::List) .build(); - let mut editor = Editor::with_config(editor_config); + let mut editor = + Editor::with_config(editor_config).expect("Failed to create editor."); editor.set_helper(Some(helper)); editor.load_history(&history_file_path).unwrap_or(()); editor.bind_sequence( |