remove double referencing

Reasons:
- The compiler will immediately dereference the referenced reference.

Signed-off-by: Perma Alesheikh <me@prma.dev>
This commit is contained in:
Perma Alesheikh 2024-01-09 13:57:49 +03:30 committed by Clément DOUIN
parent 945c567f35
commit 0f097fe293
No known key found for this signature in database
GPG key ID: 353E4A18EE0FAB72
7 changed files with 8 additions and 8 deletions

View file

@ -82,6 +82,6 @@ impl WatchEnvelopesCommand {
"Start watching folder {folder} for envelopes changes…"
))?;
backend.watch_envelopes(&folder).await
backend.watch_envelopes(folder).await
}
}

View file

@ -88,7 +88,7 @@ impl AttachmentDownloadCommand {
)
.await?;
let emails = backend.get_messages(&folder, ids).await?;
let emails = backend.get_messages(folder, ids).await?;
let mut emails_count = 0;
let mut attachments_count = 0;

View file

@ -136,9 +136,9 @@ impl MessageReadCommand {
.await?;
let emails = if self.preview {
backend.peek_messages(&folder, &ids).await
backend.peek_messages(folder, ids).await
} else {
backend.get_messages(&folder, &ids).await
backend.get_messages(folder, ids).await
}?;
let mut glue = "";

View file

@ -72,7 +72,7 @@ impl AddFolderCommand {
)
.await?;
backend.add_folder(&folder).await?;
backend.add_folder(folder).await?;
printer.print(format!("Folder {folder} successfully created!"))
}

View file

@ -87,7 +87,7 @@ impl FolderDeleteCommand {
)
.await?;
backend.delete_folder(&folder).await?;
backend.delete_folder(folder).await?;
printer.print(format!("Folder {folder} successfully deleted!"))
}

View file

@ -76,7 +76,7 @@ impl FolderExpungeCommand {
)
.await?;
backend.expunge_folder(&folder).await?;
backend.expunge_folder(folder).await?;
printer.print(format!("Folder {folder} successfully expunged!"))
}

View file

@ -86,7 +86,7 @@ impl FolderPurgeCommand {
)
.await?;
backend.purge_folder(&folder).await?;
backend.purge_folder(folder).await?;
printer.print(format!("Folder {folder} successfully purged!"))
}