From 07acd945bfb02829f61d9cfc61e3b066c6cf0610 Mon Sep 17 00:00:00 2001 From: Simon Laux Date: Thu, 10 Oct 2024 15:22:25 +0200 Subject: [PATCH] fix lint, revert incorrect change --- deltachat-repl/src/main.rs | 2 +- src/pgp.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/deltachat-repl/src/main.rs b/deltachat-repl/src/main.rs index 1c7ab19380..8ecf4a4401 100644 --- a/deltachat-repl/src/main.rs +++ b/deltachat-repl/src/main.rs @@ -354,7 +354,7 @@ async fn start(args: Vec) -> Result<(), Error> { match readline { Ok(line) => { rl.add_history_entry(line.as_str())?; - let should_continue = spawn_named_blocking_task!("repl:handle_cmd", async { + let should_continue = Handle::current().block_on(async { match handle_cmd(line.trim(), ctx.clone(), &mut selected_chat).await { Ok(ExitResult::Continue) => true, Ok(ExitResult::Exit) => { diff --git a/src/pgp.rs b/src/pgp.rs index 2636bbcc57..4d78ee4499 100644 --- a/src/pgp.rs +++ b/src/pgp.rs @@ -16,7 +16,6 @@ use pgp::crypto::hash::HashAlgorithm; use pgp::crypto::sym::SymmetricKeyAlgorithm; use pgp::types::{CompressionAlgorithm, KeyTrait, Mpi, PublicKeyTrait, StringToKey}; use rand::{thread_rng, CryptoRng, Rng}; -use tokio::runtime::Handle; use crate::constants::KeyGenType; use crate::key::{DcKey, Fingerprint};