From fc2c48647c5a8d06438bc9ce1f8f47569fbb4244 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Fri, 6 May 2022 23:09:49 +0100 Subject: [PATCH] Allow large enum variant size for Datastore and Transaction --- lib/src/kvs/ds.rs | 1 + lib/src/kvs/tx.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/src/kvs/ds.rs b/lib/src/kvs/ds.rs index ed2b993c..4536c550 100644 --- a/lib/src/kvs/ds.rs +++ b/lib/src/kvs/ds.rs @@ -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), diff --git a/lib/src/kvs/tx.rs b/lib/src/kvs/tx.rs index e1de620c..3df9f378 100644 --- a/lib/src/kvs/tx.rs +++ b/lib/src/kvs/tx.rs @@ -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),