From ef8d5439c855924153ba671cc1697ca9f1a44f46 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 1 Oct 2022 17:34:42 +0200 Subject: docs: improve item links in the injectable macro --- macros/src/lib.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'macros') diff --git a/macros/src/lib.rs b/macros/src/lib.rs index 2099810..2d37c43 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -25,7 +25,8 @@ use crate::injectable::implementation::InjectableImpl; use crate::injectable::macro_args::InjectableMacroArgs; use crate::libs::intertrait_macros::gen_caster::generate_caster; -/// Makes a struct injectable. Thereby usable with [`DIContainer`]. +/// Makes a struct injectable. Thereby usable with [`DIContainer`] or +/// [`AsyncDIContainer`]. /// /// # Arguments /// * (Optional) A interface trait the struct implements. @@ -103,9 +104,10 @@ use crate::libs::intertrait_macros::gen_caster::generate_caster; /// } /// ``` /// -/// [`DIContainer`]: ../syrette/di_container/struct.DIContainer.html -/// [`Injectable`]: ../syrette/interfaces/injectable/trait.Injectable.html -/// [`di_container_bind`]: ../syrette/macro.di_container_bind.html +/// [`DIContainer`]: https://docs.rs/syrette/latest/syrette/di_container/struct.DIContainer.html +/// [`AsyncDIContainer`]: https://docs.rs/syrette/latest/syrette/async_di_container/struct.AsyncDIContainer.html +/// [`Injectable`]: https://docs.rs/syrette/latest/syrette/interfaces/injectable/trait.Injectable.html +/// [`di_container_bind`]: https://docs.rs/syrette/latest/syrette/macro.di_container_bind.html #[proc_macro_attribute] pub fn injectable(args_stream: TokenStream, impl_stream: TokenStream) -> TokenStream { -- cgit v1.2.3-18-g5258