From 2193910579874f698feff7af6712c9350bdb9d6b Mon Sep 17 00:00:00 2001 From: Stefan Holderbach Date: Fri, 1 Apr 2022 00:16:28 +0200 Subject: [PATCH] Update reedline to new constructor API (#5051) --- Cargo.lock | 2 +- crates/nu-cli/src/repl.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0e5c69e09e..e45943432d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3428,7 +3428,7 @@ dependencies = [ [[package]] name = "reedline" version = "0.3.1" -source = "git+https://github.com/nushell/reedline?branch=main#0f92985c69efca2567ad40ebc0381864e91aff8c" +source = "git+https://github.com/nushell/reedline?branch=main#60386ac6107e8c5b4cdbdc415011c0f4fe2f0f77" dependencies = [ "chrono", "crossterm", diff --git a/crates/nu-cli/src/repl.rs b/crates/nu-cli/src/repl.rs index 3b894f5dba..d1df2ce2b0 100644 --- a/crates/nu-cli/src/repl.rs +++ b/crates/nu-cli/src/repl.rs @@ -128,7 +128,7 @@ pub fn evaluate_repl( if is_perf_true { info!("setup reedline {}:{}:{}", file!(), line!(), column!()); } - let mut line_editor = Reedline::create().into_diagnostic()?; + let mut line_editor = Reedline::create(); if let Some(history_path) = history_path.as_deref() { if is_perf_true { info!("setup history {}:{}:{}", file!(), line!(), column!()); @@ -140,7 +140,7 @@ pub fn evaluate_repl( ) .into_diagnostic()?, ); - line_editor = line_editor.with_history(history).into_diagnostic()?; + line_editor = line_editor.with_history(history); }; loop {