From 052b56fe10494c37afd058548c5dc7e2f359e08c Mon Sep 17 00:00:00 2001 From: David Knaack Date: Mon, 15 Mar 2021 11:40:52 +0100 Subject: refactor: replace RootModuleConfig with Default (#2458) --- src/configs/lua.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/configs/lua.rs') diff --git a/src/configs/lua.rs b/src/configs/lua.rs index 38abac8e7..592b62da9 100644 --- a/src/configs/lua.rs +++ b/src/configs/lua.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 LuaConfig<'a> { pub detect_folders: Vec<&'a str>, } -impl<'a> RootModuleConfig<'a> for LuaConfig<'a> { - fn new() -> Self { +impl<'a> Default for LuaConfig<'a> { + fn default() -> Self { LuaConfig { format: "via [$symbol($version )]($style)", symbol: "🌙 ", -- cgit v1.2.3