diff options
author | sigmaSd <bedisnbiba@gmail.com> | 2022-07-18 19:47:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-18 20:47:00 +0200 |
commit | 1f04cea160071a296fc97a6bd50a2690521d70f6 (patch) | |
tree | 4a941dea22052611a9ac3a4dc78a605b4501459a /cli | |
parent | 999cbfb52bc42c58467e3592d5fead9c4ee8a2c1 (diff) |
chore(repl): update rustyline to 10.0.0 (#15232)
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( |