Allow large enum variant size for Datastore and Transaction

This commit is contained in:
Tobie Morgan Hitchcock 2022-05-06 23:09:49 +01:00
parent 5921a6b632
commit fc2c48647c
2 changed files with 2 additions and 0 deletions

View file

@ -15,6 +15,7 @@ pub struct Datastore {
pub(super) inner: Inner,
}
#[allow(clippy::large_enum_variant)]
pub(super) enum Inner {
#[cfg(feature = "kv-echodb")]
Mem(super::mem::Datastore),

View file

@ -21,6 +21,7 @@ pub struct Transaction {
pub(super) inner: Inner,
}
#[allow(clippy::large_enum_variant)]
pub(super) enum Inner {
#[cfg(feature = "kv-echodb")]
Mem(super::mem::Transaction),