diff options
Diffstat (limited to 'src/configs/cmd_duration.rs')
-rw-r--r-- | src/configs/cmd_duration.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/configs/cmd_duration.rs b/src/configs/cmd_duration.rs index 7609e9cfa..096fbf8e1 100644 --- a/src/configs/cmd_duration.rs +++ b/src/configs/cmd_duration.rs @@ -1,4 +1,4 @@ -use crate::config::{ModuleConfig, RootModuleConfig}; +use crate::config::ModuleConfig; use starship_module_config_derive::ModuleConfig; @@ -13,8 +13,8 @@ pub struct CmdDurationConfig<'a> { pub min_time_to_notify: i64, } -impl<'a> RootModuleConfig<'a> for CmdDurationConfig<'a> { - fn new() -> Self { +impl<'a> Default for CmdDurationConfig<'a> { + fn default() -> Self { CmdDurationConfig { min_time: 2_000, format: "took [$duration]($style) ", |