Skip to content

Commit 60f810e

Browse files
Bump rustyline from 14.0.0 to 15.0.0 (#83)
* Bump rustyline from 14.0.0 to 15.0.0 Bumps [rustyline](https://github.com/kkawakam/rustyline) from 14.0.0 to 15.0.0. - [Release notes](https://github.com/kkawakam/rustyline/releases) - [Changelog](https://github.com/kkawakam/rustyline/blob/master/History.md) - [Commits](kkawakam/rustyline@v14.0.0...v15.0.0) --- updated-dependencies: - dependency-name: rustyline dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * manually fix --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chay Nabors <[email protected]>
1 parent 947aa60 commit 60f810e

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

Cargo.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/q_cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ owo-colors = "4.2.0"
6363
parking_lot.workspace = true
6464
rand.workspace = true
6565
regex.workspace = true
66-
rustyline = { version = "14.0.0", features = ["derive"] }
66+
rustyline = { version = "15.0.0", features = ["derive"] }
6767
semver.workspace = true
6868
serde.workspace = true
6969
serde_json.workspace = true

crates/q_cli/src/cli/chat/prompt.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ use rustyline::completion::{
77
extract_word,
88
};
99
use rustyline::error::ReadlineError;
10-
use rustyline::highlight::Highlighter;
10+
use rustyline::highlight::{
11+
CmdKind,
12+
Highlighter,
13+
};
1114
use rustyline::history::DefaultHistory;
1215
use rustyline::{
1316
Completer,
@@ -84,7 +87,7 @@ impl Highlighter for ChatHelper {
8487
Cow::Borrowed(line)
8588
}
8689

87-
fn highlight_char(&self, _line: &str, _pos: usize, _forced: bool) -> bool {
90+
fn highlight_char(&self, _line: &str, _pos: usize, _kind: CmdKind) -> bool {
8891
false
8992
}
9093
}

0 commit comments

Comments
 (0)