diff options
Diffstat (limited to 'src/configs/git_branch.rs')
-rw-r--r-- | src/configs/git_branch.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/configs/git_branch.rs b/src/configs/git_branch.rs index 8e4bb3caf..87ab33f1a 100644 --- a/src/configs/git_branch.rs +++ b/src/configs/git_branch.rs @@ -1,4 +1,4 @@ -use crate::config::{ModuleConfig, RootModuleConfig}; +use crate::config::ModuleConfig; use starship_module_config_derive::ModuleConfig; @@ -14,8 +14,8 @@ pub struct GitBranchConfig<'a> { pub disabled: bool, } -impl<'a> RootModuleConfig<'a> for GitBranchConfig<'a> { - fn new() -> Self { +impl<'a> Default for GitBranchConfig<'a> { + fn default() -> Self { GitBranchConfig { format: "on [$symbol$branch]($style)(:[$remote]($style)) ", symbol: " ", |