From 586aba5c8c64226f1be266820db02391ac43359b Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 17 Aug 2023 22:34:58 +0200 Subject: refactor: use derive for DependencyHistory Default impl --- src/dependency_history.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src') 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 -- cgit v1.2.3-18-g5258