diff options
author | HampusM <hampus@hampusmat.com> | 2023-08-17 22:34:58 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-08-17 22:34:58 +0200 |
commit | 586aba5c8c64226f1be266820db02391ac43359b (patch) | |
tree | bb0fe03e3bb75cafd683b887a1c537d967fcff82 | |
parent | ca7cb248bfdebfda1658f0c756db42d779cff030 (diff) |
refactor: use derive for DependencyHistory Default impl
-rw-r--r-- | src/dependency_history.rs | 10 |
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 |