aboutsummaryrefslogtreecommitdiff
path: root/src/imap/index.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-01-10 12:55:38 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-01-10 12:55:38 +0100
commit51510c97f7b76a73a2032eb089552cf9a13e9274 (patch)
tree76f45feb92e6e86de09f117d4a41710d35091c4b /src/imap/index.rs
parenta2d6efc962dbf5de64a70cf7d9f293534bd5369a (diff)
downloadaerogramme-51510c97f7b76a73a2032eb089552cf9a13e9274.tar.gz
aerogramme-51510c97f7b76a73a2032eb089552cf9a13e9274.zip
fix some logic error in the internals
Diffstat (limited to 'src/imap/index.rs')
-rw-r--r--src/imap/index.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imap/index.rs b/src/imap/index.rs
index 4853374..95c16b3 100644
--- a/src/imap/index.rs
+++ b/src/imap/index.rs
@@ -21,7 +21,7 @@ impl<'a> Index<'a> {
.table
.get(&uuid)
.ok_or(anyhow!("mail is missing from index"))?
- .1
+ .2
.as_ref();
let i_int: u32 = (i_enum + 1).try_into()?;
let i: NonZeroU32 = i_int.try_into()?;