Corrige referencias si no se usa base de datos
This commit is contained in:
parent
f5314e9ca4
commit
5901ff6fcf
2 changed files with 8 additions and 2 deletions
|
|
@ -1,8 +1,13 @@
|
||||||
use crate::{Lazy, app, run_now, trace};
|
use crate::{Lazy, app, trace};
|
||||||
use crate::core::hook::add_hook;
|
use crate::core::hook::add_hook;
|
||||||
use crate::db::*;
|
|
||||||
use super::ModuleTrait;
|
use super::ModuleTrait;
|
||||||
|
|
||||||
|
#[cfg(any(feature = "mysql", feature = "postgres", feature = "sqlite"))]
|
||||||
|
use crate::{
|
||||||
|
db::*,
|
||||||
|
run_now,
|
||||||
|
};
|
||||||
|
|
||||||
use std::sync::RwLock;
|
use std::sync::RwLock;
|
||||||
|
|
||||||
// Enabled modules.
|
// Enabled modules.
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ pub use doc_comment::doc_comment;
|
||||||
|
|
||||||
// Local.
|
// Local.
|
||||||
|
|
||||||
|
#[allow(unused_imports)]
|
||||||
pub(crate) use futures::executor::block_on as run_now;
|
pub(crate) use futures::executor::block_on as run_now;
|
||||||
|
|
||||||
// Public APIs.
|
// Public APIs.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue