mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
refactor: replace RootModuleConfig with Default (#2458)
This commit is contained in:
+3
-3
@@ -1,4 +1,4 @@
|
||||
use crate::config::{ModuleConfig, RootModuleConfig};
|
||||
use crate::config::ModuleConfig;
|
||||
|
||||
use starship_module_config_derive::ModuleConfig;
|
||||
|
||||
@@ -13,8 +13,8 @@ pub struct PhpConfig<'a> {
|
||||
pub detect_folders: Vec<&'a str>,
|
||||
}
|
||||
|
||||
impl<'a> RootModuleConfig<'a> for PhpConfig<'a> {
|
||||
fn new() -> Self {
|
||||
impl<'a> Default for PhpConfig<'a> {
|
||||
fn default() -> Self {
|
||||
PhpConfig {
|
||||
symbol: "🐘 ",
|
||||
style: "147 bold",
|
||||
|
||||
Reference in New Issue
Block a user