Corrige referencias si no se usa base de datos

This commit is contained in:
Manuel Cillero 2022-05-16 21:49:11 +02:00
parent f5314e9ca4
commit 5901ff6fcf
2 changed files with 8 additions and 2 deletions

View file

@ -1,8 +1,13 @@
use crate::{Lazy, app, run_now, trace};
use crate::{Lazy, app, trace};
use crate::core::hook::add_hook;
use crate::db::*;
use super::ModuleTrait;
#[cfg(any(feature = "mysql", feature = "postgres", feature = "sqlite"))]
use crate::{
db::*,
run_now,
};
use std::sync::RwLock;
// Enabled modules.

View file

@ -6,6 +6,7 @@ pub use doc_comment::doc_comment;
// Local.
#[allow(unused_imports)]
pub(crate) use futures::executor::block_on as run_now;
// Public APIs.