Simplify the feature gates for stor commands (#11416)

All of them depend on feature `sqlite` so just conditionally `use` the
parent module.
This commit is contained in:
Stefan Holderbach 2023-12-24 13:31:46 +01:00 committed by GitHub
parent 7ad0e5541e
commit 543a25599c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 16 deletions

View File

@ -23,6 +23,7 @@ mod random;
mod removed; mod removed;
mod shells; mod shells;
mod sort_utils; mod sort_utils;
#[cfg(feature = "sqlite")]
mod stor; mod stor;
mod strings; mod strings;
mod system; mod system;

View File

@ -1,35 +1,19 @@
#[cfg(feature = "sqlite")]
mod create; mod create;
#[cfg(feature = "sqlite")]
mod delete; mod delete;
#[cfg(feature = "sqlite")]
mod export; mod export;
#[cfg(feature = "sqlite")]
mod import; mod import;
#[cfg(feature = "sqlite")]
mod insert; mod insert;
#[cfg(feature = "sqlite")]
mod open; mod open;
#[cfg(feature = "sqlite")]
mod reset; mod reset;
mod stor_; mod stor_;
#[cfg(feature = "sqlite")]
mod update; mod update;
#[cfg(feature = "sqlite")]
pub use create::StorCreate; pub use create::StorCreate;
#[cfg(feature = "sqlite")]
pub use delete::StorDelete; pub use delete::StorDelete;
#[cfg(feature = "sqlite")]
pub use export::StorExport; pub use export::StorExport;
#[cfg(feature = "sqlite")]
pub use import::StorImport; pub use import::StorImport;
#[cfg(feature = "sqlite")]
pub use insert::StorInsert; pub use insert::StorInsert;
#[cfg(feature = "sqlite")]
pub use open::StorOpen; pub use open::StorOpen;
#[cfg(feature = "sqlite")]
pub use reset::StorReset; pub use reset::StorReset;
pub use stor_::Stor; pub use stor_::Stor;
#[cfg(feature = "sqlite")]
pub use update::StorUpdate; pub use update::StorUpdate;