Fix features guards in state/merkle/sql/sqlite.rs
The use statement wasn't guarded by the same features as the test which
was using it, resulting in compiler warnings.
@@ -374,7 +374,12 @@ impl MerkleRadixLeafReader for SqlMerkleState<SqliteBackend> {
mod test {
use super::*;
- use crate::state::merkle::sql::backend::{self, SqliteBackendBuilder};
+ #[cfg(all(
+ feature = "state-merkle-sql-in-transaction",
+ feature = "state-trait-committer"
+ ))]
+ use crate::state::merkle::sql::backend;
+ use crate::state::merkle::sql::backend::SqliteBackendBuilder;
use crate::state::merkle::sql::migration::MigrationManager;
#[cfg(all(
feature = "state-merkle-sql-in-transaction",
