aboutsummaryrefslogtreecommitdiff
path: root/syrette_macros/src
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-07-10 13:03:53 +0200
committerHampusM <hampus@hampusmat.com>2022-07-10 13:03:53 +0200
commit5894e39dd73579bdb949a3eaeb7b7b68f88df4e8 (patch)
tree311add94c54d7fec182a36081ec120deda483aab /syrette_macros/src
parent152a7a71101b94e4ddaa221396403d7dd1e76dbe (diff)
refactor: add dedicated interface & error modules
Diffstat (limited to 'syrette_macros/src')
-rw-r--r--syrette_macros/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/syrette_macros/src/lib.rs b/syrette_macros/src/lib.rs
index faf338c..1761534 100644
--- a/syrette_macros/src/lib.rs
+++ b/syrette_macros/src/lib.rs
@@ -205,16 +205,16 @@ pub fn injectable(args_stream: TokenStream, impl_stream: TokenStream) -> TokenSt
quote! {
#item_impl
- impl syrette::injectable::Injectable for #self_type_path {
+ impl syrette::interfaces::injectable::Injectable for #self_type_path {
fn resolve(
di_container: &syrette::DIContainer
- ) -> error_stack::Result<Box<Self>, syrette::injectable::ResolveError>
+ ) -> error_stack::Result<Box<Self>, syrette::errors::injectable::ResolveError>
{
use error_stack::ResultExt;
return Ok(Box::new(Self::new(
#(di_container.get::<#dependency_types>()
- .change_context(syrette::injectable::ResolveError)
+ .change_context(syrette::errors::injectable::ResolveError)
.attach_printable(format!(
"Unable to resolve a dependency of {}",
std::any::type_name::<#self_type_path>()