Fix clippy warning

This commit is contained in:
Steve Myers
2021-09-23 18:42:09 -07:00
parent 678607e673
commit 919522a456
2 changed files with 7 additions and 6 deletions

View File

@@ -320,6 +320,7 @@ impl BatchDatabase for AnyDatabase {
match self {
AnyDatabase::Memory(db) => match batch {
AnyBatch::Memory(batch) => db.commit_batch(batch),
#[cfg(any(feature = "key-value-db", feature = "sqlite"))]
_ => unimplemented!("Other batch shouldn't be used with Memory db."),
},
#[cfg(feature = "key-value-db")]