summaryrefslogtreecommitdiffstats
path: root/src/configs/hostname.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/configs/hostname.rs')
-rw-r--r--src/configs/hostname.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/configs/hostname.rs b/src/configs/hostname.rs
index ff57a6961..f1e91bea0 100644
--- a/src/configs/hostname.rs
+++ b/src/configs/hostname.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 HostnameConfig<'a> {
pub disabled: bool,
}
-impl<'a> RootModuleConfig<'a> for HostnameConfig<'a> {
- fn new() -> Self {
+impl<'a> Default for HostnameConfig<'a> {
+ fn default() -> Self {
HostnameConfig {
ssh_only: true,
trim_at: ".",