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 <flokli@flokli.de>
Tested-by: besadii
Reviewed-by: Ryan Lahfa <ryan@lahfa.xyz>
This commit is contained in:
Florian Klink 2025-07-31 15:30:49 +02:00 committed by clbot
parent c32a23bf63
commit 87411772d7
2 changed files with 2 additions and 0 deletions

View file

@ -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)?;

View file

@ -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)?;