From 0f2756536e8fc311119da2af5b4dcc33f41bec6e Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 4 Oct 2023 12:51:06 +0200 Subject: refactor!: remove factory & declare_default_factory macros BREAKING CHANGE: The factory and the declare_default_factory macros have been removed. They are no longer needed to use factories --- src/private/any_factory.rs | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 src/private/any_factory.rs (limited to 'src/private/any_factory.rs') diff --git a/src/private/any_factory.rs b/src/private/any_factory.rs deleted file mode 100644 index 64af57e..0000000 --- a/src/private/any_factory.rs +++ /dev/null @@ -1,11 +0,0 @@ -//! Interface for any factory to ever exist. - -use std::fmt::Debug; - -use crate::private::cast::{CastFrom, CastFromArc}; - -/// Interface for any factory to ever exist. -pub trait AnyFactory: CastFrom + Debug {} - -/// Interface for any threadsafe factory to ever exist. -pub trait AnyThreadsafeFactory: CastFromArc + Debug {} -- cgit v1.2.3-18-g5258