From 87411772d7a903e61a87941b2a15a08388d7ff3b Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 31 Jul 2025 15:30:49 +0200 Subject: [PATCH] fix(snix/castore): allow result_large_err for redb create_schema Passing around boxed errors here would be way more annoying, and we call this once during database initialization. Change-Id: I04e65dcc6fbdec591ef553bac9825f51a7d47991 Reviewed-on: https://cl.snix.dev/c/snix/+/30633 Autosubmit: Florian Klink Tested-by: besadii Reviewed-by: Ryan Lahfa --- snix/castore/src/directoryservice/redb.rs | 1 + snix/store/src/pathinfoservice/redb.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/snix/castore/src/directoryservice/redb.rs b/snix/castore/src/directoryservice/redb.rs index c59c2c5e1..81b70a81d 100644 --- a/snix/castore/src/directoryservice/redb.rs +++ b/snix/castore/src/directoryservice/redb.rs @@ -66,6 +66,7 @@ impl RedbDirectoryService { /// Ensures all tables are present. /// Opens a write transaction and calls open_table on DIRECTORY_TABLE, which will /// create it if not present. +#[allow(clippy::result_large_err)] fn create_schema(db: &redb::Database) -> Result<(), redb::Error> { let txn = db.begin_write()?; txn.open_table(DIRECTORY_TABLE)?; diff --git a/snix/store/src/pathinfoservice/redb.rs b/snix/store/src/pathinfoservice/redb.rs index a500bdc94..69d0a15ea 100644 --- a/snix/store/src/pathinfoservice/redb.rs +++ b/snix/store/src/pathinfoservice/redb.rs @@ -65,6 +65,7 @@ impl RedbPathInfoService { /// Ensures all tables are present. /// Opens a write transaction and calls open_table on PATHINFO_TABLE, which will /// create it if not present. +#[allow(clippy::result_large_err)] fn create_schema(db: &redb::Database) -> Result<(), redb::Error> { let txn = db.begin_write()?; txn.open_table(PATHINFO_TABLE)?;