From 9e2a4325e9e592a74bc518172772d903f1bbf6e6 Mon Sep 17 00:00:00 2001 From: link2xt Date: Thu, 11 Dec 2025 18:32:18 +0000 Subject: [PATCH] chore: apply Rust 1.92.0 clippy suggestions --- deltachat-repl/src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/deltachat-repl/src/main.rs b/deltachat-repl/src/main.rs index 3b63667fe..518ea8dee 100644 --- a/deltachat-repl/src/main.rs +++ b/deltachat-repl/src/main.rs @@ -430,12 +430,12 @@ async fn handle_cmd( } "oauth2" => { if let Some(addr) = ctx.get_config(config::Config::Addr).await? { - let oauth2_url = - get_oauth2_url(&ctx, &addr, "chat.delta:/com.b44t.messenger").await?; - if oauth2_url.is_none() { - println!("OAuth2 not available for {}.", &addr); + if let Some(oauth2_url) = + get_oauth2_url(&ctx, &addr, "chat.delta:/com.b44t.messenger").await? + { + println!("Open the following url, set mail_pw to the generated token and server_flags to 2:\n{oauth2_url}"); } else { - println!("Open the following url, set mail_pw to the generated token and server_flags to 2:\n{}", oauth2_url.unwrap()); + println!("OAuth2 not available for {}.", &addr); } } else { println!("oauth2: set addr first.");