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

@@ -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,