diff --git a/Cargo.toml b/Cargo.toml index 684e2592..e571dc48 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,7 @@ serde = { version = "1.0", default-features = false, features = ["derive", "allo serde_json = { version = "1.0", default-features = false, features = ["alloc"], optional = true } unicode-xid = { version = "0.2", default-features = false, optional = true } rust_decimal = { version = "1.16", default-features = false, features = ["maths"], optional = true } -rustyline = { version = "9", optional = true } +rustyline = { version = "10", optional = true } [dev-dependencies] serde_bytes = "0.11" @@ -96,4 +96,4 @@ features = ["metadata", "serde", "internals", "decimal", "debugging"] [patch.crates-io] # Notice that a custom modified version of `rustyline` is used which supports bracketed paste on Windows. # This can be moved to the official version when bracketed paste is added. -rustyline = { git = "https://github.com/schungx/rustyline" } +rustyline = { git = "https://github.com/schungx/rustyline", branch = "v10" } diff --git a/src/bin/rhai-repl.rs b/src/bin/rhai-repl.rs index 0cf59289..4fe171ce 100644 --- a/src/bin/rhai-repl.rs +++ b/src/bin/rhai-repl.rs @@ -194,7 +194,7 @@ fn setup_editor() -> Editor<()> { .indent_size(4) .bracketed_paste(true) .build(); - let mut rl = Editor::<()>::with_config(config); + let mut rl = Editor::<()>::with_config(config).unwrap(); // Bind more keys