Skip to content

Commit

Permalink
fix lint, revert incorrect change
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Laux committed Oct 10, 2024
1 parent bea3e69 commit 07acd94
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion deltachat-repl/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ async fn start(args: Vec<String>) -> 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) => {
Expand Down
1 change: 0 additions & 1 deletion src/pgp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 07acd94

Please sign in to comment.