summaryrefslogtreecommitdiffstats
path: root/src/configs/nix_shell.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/configs/nix_shell.rs')
-rw-r--r--src/configs/nix_shell.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/configs/nix_shell.rs b/src/configs/nix_shell.rs
index 144bf3e72..b75ae9647 100644
--- a/src/configs/nix_shell.rs
+++ b/src/configs/nix_shell.rs
@@ -1,4 +1,4 @@
-use crate::config::{ModuleConfig, RootModuleConfig};
+use crate::config::ModuleConfig;
use starship_module_config_derive::ModuleConfig;
@@ -15,8 +15,8 @@ pub struct NixShellConfig<'a> {
/* The trailing double spaces in `symbol` are needed to work around issues with
multiwidth emoji support in some shells. Please do not file a PR to change this
unless you can show that your changes do not affect this workaround. */
-impl<'a> RootModuleConfig<'a> for NixShellConfig<'a> {
- fn new() -> Self {
+impl<'a> Default for NixShellConfig<'a> {
+ fn default() -> Self {
NixShellConfig {
format: "via [$symbol$state( \\($name\\))]($style) ",
symbol: "❄️ ",