summaryrefslogtreecommitdiffstats
path: root/src/configs/shlvl.rs
diff options
context:
space:
mode:
authorDavid Knaack <davidkna@users.noreply.github.com>2021-03-15 11:40:52 +0100
committerGitHub <noreply@github.com>2021-03-15 11:40:52 +0100
commit052b56fe10494c37afd058548c5dc7e2f359e08c (patch)
tree041d9cb554a79bfe8a997d75f13a75a0ba51801e /src/configs/shlvl.rs
parent6fd7d7b5010c28d0557e4ff562187098abaa3bc6 (diff)
refactor: replace RootModuleConfig with Default (#2458)
Diffstat (limited to 'src/configs/shlvl.rs')
-rw-r--r--src/configs/shlvl.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/configs/shlvl.rs b/src/configs/shlvl.rs
index e5648b5ed..2f8d57a9d 100644
--- a/src/configs/shlvl.rs
+++ b/src/configs/shlvl.rs
@@ -1,4 +1,4 @@
-use crate::config::{ModuleConfig, RootModuleConfig};
+use crate::config::ModuleConfig;
use starship_module_config_derive::ModuleConfig;
@@ -12,8 +12,8 @@ pub struct ShLvlConfig<'a> {
pub disabled: bool,
}
-impl<'a> RootModuleConfig<'a> for ShLvlConfig<'a> {
- fn new() -> Self {
+impl<'a> Default for ShLvlConfig<'a> {
+ fn default() -> Self {
ShLvlConfig {
threshold: 2,
format: "[$symbol$shlvl]($style) ",