aboutsummaryrefslogtreecommitdiff
path: root/src/dependency_trace.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-10-29 14:38:51 +0200
committerHampusM <hampus@hampusmat.com>2022-10-29 14:40:11 +0200
commitaa548ded39c7ba1927019c748c359523b21d59e8 (patch)
tree779d104f85009dd831e6af6e7a523258a1ab5be9 /src/dependency_trace.rs
parentda94fd3b7dd2265f10957d0f5276881beb057d82 (diff)
refactor!: add dependency history type
BREAKING CHANGE: Binding builders & configurators now take dependency history type arguments, the DetectedCircular variant of InjectableError now contains a dependency history field & the injectable traits take dependency history instead of a Vec
Diffstat (limited to 'src/dependency_trace.rs')
-rw-r--r--src/dependency_trace.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/dependency_trace.rs b/src/dependency_trace.rs
deleted file mode 100644
index 86906f4..0000000
--- a/src/dependency_trace.rs
+++ /dev/null
@@ -1,18 +0,0 @@
-#[must_use]
-pub fn create_dependency_trace(
- dependency_history: &[&'static str],
- err_dependency: &'static str,
-) -> String
-{
- dependency_history
- .iter()
- .map(|dep| {
- if dep == &err_dependency {
- format!("\x1b[1m{}\x1b[22m", dep)
- } else {
- (*dep).to_string()
- }
- })
- .collect::<Vec<_>>()
- .join(" -> ")
-}