aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-08-17 22:34:58 +0200
committerHampusM <hampus@hampusmat.com>2023-08-17 22:34:58 +0200
commit586aba5c8c64226f1be266820db02391ac43359b (patch)
treebb0fe03e3bb75cafd683b887a1c537d967fcff82 /src
parentca7cb248bfdebfda1658f0c756db42d779cff030 (diff)
refactor: use derive for DependencyHistory Default impl
Diffstat (limited to 'src')
-rw-r--r--src/dependency_history.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/dependency_history.rs b/src/dependency_history.rs
index e5b2aea..d0356c0 100644
--- a/src/dependency_history.rs
+++ b/src/dependency_history.rs
@@ -16,7 +16,7 @@ const RESET_BOLD_MODE: &str = "\x1b[22m";
/// [`Injectable`]: crate::interfaces::injectable::Injectable
/// [`AsyncInjectable`]: crate::interfaces::async_injectable::AsyncInjectable
/// [`injectable`]: crate::injectable
-#[derive(Clone, Debug)]
+#[derive(Clone, Debug, Default)]
pub struct DependencyHistory
{
inner: Vec<&'static str>,
@@ -94,14 +94,6 @@ impl Display for DependencyHistory
}
}
-impl Default for DependencyHistory
-{
- fn default() -> Self
- {
- Self::new()
- }
-}
-
impl private::Sealed for DependencyHistory {}
pub(crate) mod private