Bunch of feedback: renames, simple functions, no cow

This commit is contained in:
Floris Bruynooghe
2021-02-11 22:24:56 +01:00
parent 29f184b4c4
commit 46a3226e43
22 changed files with 1216 additions and 1814 deletions

View File

@@ -35,7 +35,7 @@ use crate::oauth2::dc_get_oauth2_access_token;
use crate::param::Params;
use crate::provider::Socket;
use crate::scheduler::InterruptInfo;
use crate::stock::CannotLogin;
use crate::stock_str;
mod client;
mod idle;
@@ -255,9 +255,7 @@ impl Imap {
Err((err, _)) => {
let imap_user = self.config.lp.user.to_owned();
let message = CannotLogin::stock_str(context, &imap_user)
.await
.to_string();
let message = stock_str::cannot_login(context, &imap_user).await;
warn!(context, "{} ({})", message, err);