mirror of
https://github.com/chatmail/core.git
synced 2026-05-13 20:06:30 +03:00
Enable clippy::block_in_if_condition_stmt error
This commit is contained in:
@@ -329,9 +329,7 @@ impl Imap {
|
|||||||
|
|
||||||
/// Connects to imap account using already-configured parameters.
|
/// Connects to imap account using already-configured parameters.
|
||||||
pub fn connect_configured(&self, context: &Context) -> Result<()> {
|
pub fn connect_configured(&self, context: &Context) -> Result<()> {
|
||||||
if async_std::task::block_on(async move {
|
if async_std::task::block_on(self.is_connected()) && !self.should_reconnect() {
|
||||||
self.is_connected().await && !self.should_reconnect()
|
|
||||||
}) {
|
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
if !context.sql.get_raw_config_bool(context, "configured") {
|
if !context.sql.get_raw_config_bool(context, "configured") {
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
clippy::type_complexity,
|
clippy::type_complexity,
|
||||||
clippy::cognitive_complexity,
|
clippy::cognitive_complexity,
|
||||||
clippy::too_many_arguments,
|
clippy::too_many_arguments,
|
||||||
clippy::block_in_if_condition_stmt,
|
|
||||||
clippy::large_enum_variant
|
clippy::large_enum_variant
|
||||||
)]
|
)]
|
||||||
#![allow(
|
#![allow(
|
||||||
|
|||||||
Reference in New Issue
Block a user