diff options
author | David Knaack <davidkna@users.noreply.github.com> | 2021-10-27 15:13:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-27 15:13:17 +0200 |
commit | c4439531d35dfbed008a0dd519aa89bb67dcce24 (patch) | |
tree | dbda2aef2862f36dec8b99a4465e8cf269ba7235 /src/test | |
parent | b2c48358c33b570c00107dfaad5fe637f9d78758 (diff) |
fix: only print root level config logs a single time (#3132)
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/mod.rs b/src/test/mod.rs index 8a3a7cdd1..acc4e75cb 100644 --- a/src/test/mod.rs +++ b/src/test/mod.rs @@ -1,7 +1,8 @@ use crate::context::{Context, Shell}; use crate::logger::StarshipLogger; use crate::{ - config::StarshipConfig, + config::{RootModuleConfig, StarshipConfig}, + configs::StarshipRootConfig, utils::{create_command, CommandOutput}, }; use log::{Level, LevelFilter}; @@ -78,6 +79,7 @@ impl<'a> ModuleRenderer<'a> { /// Sets the config of the underlying context pub fn config(mut self, config: toml::Value) -> Self { + self.context.root_config = StarshipRootConfig::load(&config); self.context.config = StarshipConfig { config: Some(config), }; |