aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/any_factory.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-08-21 14:19:07 +0200
committerHampusM <hampus@hampusmat.com>2022-08-21 18:17:51 +0200
commit8c66b98bca6ed0a2990903fe8e0ea72def5c7be8 (patch)
treedeed78171051262dba7e8d97eba73a9aaf04dd5e /src/interfaces/any_factory.rs
parentb3e1b993b028bbfa73638236cfbdb50ee478d3f0 (diff)
refactor!: change errors to be more sane
BREAKING CHANGE: Major improvements have been made to error types and the error_stack crate is no longer used
Diffstat (limited to 'src/interfaces/any_factory.rs')
-rw-r--r--src/interfaces/any_factory.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/interfaces/any_factory.rs b/src/interfaces/any_factory.rs
index 98ec144..887bb61 100644
--- a/src/interfaces/any_factory.rs
+++ b/src/interfaces/any_factory.rs
@@ -1,6 +1,16 @@
//! Interface for any factory to ever exist.
+use std::fmt::Debug;
+
use crate::libs::intertrait::CastFrom;
/// Interface for any factory to ever exist.
pub trait AnyFactory: CastFrom {}
+
+impl Debug for dyn AnyFactory
+{
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result
+ {
+ f.write_str("{}")
+ }
+}