Upgrade rustyline to 11.0.0

This commit is contained in:
link2xt
2023-03-02 10:43:29 +00:00
parent 04fa80b3bd
commit 9c48bf9d13
3 changed files with 13 additions and 7 deletions

View File

@@ -12,7 +12,7 @@ dirs = "4"
log = "0.4.16"
pretty_env_logger = "0.4"
rusqlite = "0.28"
rustyline = "10"
rustyline = "11"
tokio = { version = "1", features = ["fs", "rt-multi-thread", "macros"] }
[features]

View File

@@ -350,7 +350,7 @@ async fn start(args: Vec<String>) -> Result<(), Error> {
match readline {
Ok(line) => {
// TODO: ignore "set mail_pw"
rl.add_history_entry(line.as_str());
rl.add_history_entry(line.as_str())?;
let contine = Handle::current().block_on(async {
match handle_cmd(line.trim(), ctx.clone(), &mut selected_chat).await {
Ok(ExitResult::Continue) => true,