diff options
Diffstat (limited to 'src/configs/memory_usage.rs')
-rw-r--r-- | src/configs/memory_usage.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/configs/memory_usage.rs b/src/configs/memory_usage.rs index 40006ee02..65afe7d20 100644 --- a/src/configs/memory_usage.rs +++ b/src/configs/memory_usage.rs @@ -1,4 +1,4 @@ -use crate::config::{ModuleConfig, RootModuleConfig}; +use crate::config::ModuleConfig; use starship_module_config_derive::ModuleConfig; @@ -11,8 +11,8 @@ pub struct MemoryConfig<'a> { pub disabled: bool, } -impl<'a> RootModuleConfig<'a> for MemoryConfig<'a> { - fn new() -> Self { +impl<'a> Default for MemoryConfig<'a> { + fn default() -> Self { MemoryConfig { threshold: 75, format: "via $symbol[$ram( | $swap)]($style) ", |