From 88a6d31399bd14da6574471a8df4423e63ef340f Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 14 Sep 2023 22:00:34 +0200 Subject: refactor!: remove blocking DI container prelude module BREAKING CHANGE: The blocking DI container prelude module have been removed as it is no longer necessary seeing as the blocking DI container interface have been removed --- src/di_container/blocking/mod.rs | 1 - src/di_container/blocking/prelude.rs | 2 -- src/lib.rs | 3 +-- 3 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 src/di_container/blocking/prelude.rs (limited to 'src') diff --git a/src/di_container/blocking/mod.rs b/src/di_container/blocking/mod.rs index 169abd2..548f716 100644 --- a/src/di_container/blocking/mod.rs +++ b/src/di_container/blocking/mod.rs @@ -66,7 +66,6 @@ use crate::util::use_double; use_double!(crate::dependency_history::DependencyHistory); pub mod binding; -pub mod prelude; #[cfg(not(test))] pub(crate) type BindingOptionsWithLt<'a> = BindingOptions<'a>; diff --git a/src/di_container/blocking/prelude.rs b/src/di_container/blocking/prelude.rs deleted file mode 100644 index 216be4b..0000000 --- a/src/di_container/blocking/prelude.rs +++ /dev/null @@ -1,2 +0,0 @@ -//! Commonly used types. -pub use crate::di_container::blocking::DIContainer; diff --git a/src/lib.rs b/src/lib.rs index fd8d0d7..562b886 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,9 +13,8 @@ //! ``` //! use std::error::Error; //! -//! use syrette::di_container::blocking::prelude::*; -//! use syrette::injectable; //! use syrette::ptr::TransientPtr; +//! use syrette::{injectable, DIContainer}; //! //! trait IWeapon //! { -- cgit v1.2.3-18-g5258