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:
parent
c32a23bf63
commit
87411772d7
2 changed files with 2 additions and 0 deletions
|
|
@ -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)?;
|
||||
|
|
|
|||
|
|
@ -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)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue