From a59de6d6559dcd8b28a4f57a722ea91290f72477 Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 17 Mar 2023 22:19:04 +0800 Subject: [PATCH] cleanup hosted mode warning (new with rust 1.68) --- services/pddb/src/backend/pagetable.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/pddb/src/backend/pagetable.rs b/services/pddb/src/backend/pagetable.rs index 5414c3a2b..e6a4ae131 100644 --- a/services/pddb/src/backend/pagetable.rs +++ b/services/pddb/src/backend/pagetable.rs @@ -164,7 +164,7 @@ pub(crate) struct EncryptedPage { /// journal_rev is encrypted and indicates the current journal revision for the block (u32 le) journal_rev: [u8; 4], /// data is encrypted and holds the good stuff - data: [u8; (PAGE_SIZE - size_of::() - size_of::() - size_of::())], + data: [u8; PAGE_SIZE - size_of::() - size_of::() - size_of::()], /// tag is the authentication tag. If the page decrypts & authenticates, we know it's a valid data block for us. p_tag: [u8; size_of::()], } \ No newline at end of file