From febfb927b27ab03041500b16c65bdbc0624a5a72 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 24 Sep 2022 16:23:15 +0200 Subject: refactor: remove IFactory from public API --- src/interfaces/factory.rs | 13 ------------- src/interfaces/mod.rs | 1 + 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/interfaces/factory.rs b/src/interfaces/factory.rs index 81c594b..b09db36 100644 --- a/src/interfaces/factory.rs +++ b/src/interfaces/factory.rs @@ -1,21 +1,8 @@ #![allow(clippy::module_name_repetitions)] - -//! Interface for a factory. -//! -//! --- -//! -//! *This module is only available if Syrette is built with the "factory" feature.* use crate::libs::intertrait::CastFrom; use crate::ptr::TransientPtr; /// Interface for a factory. -/// -/// # Examples -/// ``` -/// use syrette::interfaces::factory::IFactory; -/// -/// type StringFactory = dyn IFactory<(), String>; -/// ``` pub trait IFactory: Fn> + CastFrom where diff --git a/src/interfaces/mod.rs b/src/interfaces/mod.rs index ddb3bba..a69da5b 100644 --- a/src/interfaces/mod.rs +++ b/src/interfaces/mod.rs @@ -7,6 +7,7 @@ pub mod injectable; pub mod any_factory; #[cfg(feature = "factory")] +#[doc(hidden)] pub mod factory; #[cfg(feature = "async")] -- cgit v1.2.3-18-g5258