mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 19:06:35 +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.
|
||||
pub fn connect_configured(&self, context: &Context) -> Result<()> {
|
||||
if async_std::task::block_on(async move {
|
||||
self.is_connected().await && !self.should_reconnect()
|
||||
}) {
|
||||
if async_std::task::block_on(self.is_connected()) && !self.should_reconnect() {
|
||||
return Ok(());
|
||||
}
|
||||
if !context.sql.get_raw_config_bool(context, "configured") {
|
||||
|
||||
Reference in New Issue
Block a user