mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
chore: apply Rust 1.92.0 clippy suggestions
This commit is contained in:
@@ -430,12 +430,12 @@ async fn handle_cmd(
|
|||||||
}
|
}
|
||||||
"oauth2" => {
|
"oauth2" => {
|
||||||
if let Some(addr) = ctx.get_config(config::Config::Addr).await? {
|
if let Some(addr) = ctx.get_config(config::Config::Addr).await? {
|
||||||
let oauth2_url =
|
if let Some(oauth2_url) =
|
||||||
get_oauth2_url(&ctx, &addr, "chat.delta:/com.b44t.messenger").await?;
|
get_oauth2_url(&ctx, &addr, "chat.delta:/com.b44t.messenger").await?
|
||||||
if oauth2_url.is_none() {
|
{
|
||||||
println!("OAuth2 not available for {}.", &addr);
|
println!("Open the following url, set mail_pw to the generated token and server_flags to 2:\n{oauth2_url}");
|
||||||
} else {
|
} 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 {
|
} else {
|
||||||
println!("oauth2: set addr first.");
|
println!("oauth2: set addr first.");
|
||||||
|
|||||||
Reference in New Issue
Block a user