refactor: get rid of ImapActionResult

This commit is contained in:
link2xt
2024-03-01 22:09:16 +00:00
parent 4e8979f7c8
commit 5499ca52bf
3 changed files with 16 additions and 61 deletions

View File

@@ -52,7 +52,7 @@ impl ImapSession {
/// Selects a folder, possibly updating uid_validity and, if needed,
/// expunging the folder to remove delete-marked messages.
/// Returns whether a new folder was selected.
pub(super) async fn select_folder(
pub(crate) async fn select_folder(
&mut self,
context: &Context,
folder: Option<&str>,
@@ -256,7 +256,7 @@ impl ImapSession {
}
#[derive(PartialEq, Debug, Copy, Clone, Eq)]
pub(super) enum NewlySelected {
pub(crate) enum NewlySelected {
/// The folder was newly selected during this call to select_folder().
Yes,
/// No SELECT command was run because the folder already was selected