Accept &str instead of AsRef<str> in fetch_new_mesages()

This commit is contained in:
link2xt
2021-09-13 16:01:50 +00:00
parent 3096193d58
commit f8a4a88fb2
2 changed files with 7 additions and 8 deletions

View File

@@ -715,7 +715,7 @@ impl Job {
Config::ConfiguredSentboxFolder,
] {
if let Some(folder) = job_try!(context.get_config(*config).await) {
if let Err(e) = imap.fetch_new_messages(context, folder, true).await {
if let Err(e) = imap.fetch_new_messages(context, &folder, true).await {
// We are using Anyhow's .context() and to show the inner error, too, we need the {:#}:
warn!(context, "Could not fetch messages, retrying: {:#}", e);
return Status::RetryLater;