summaryrefslogtreecommitdiffstats
path: root/src/modules/git_state.rs
diff options
context:
space:
mode:
authorDavid Knaack <davidkna@users.noreply.github.com>2022-03-26 10:42:19 +0100
committerGitHub <noreply@github.com>2022-03-26 10:42:19 +0100
commit2d4b183fce8c9de0d9548f7087786bc919cae7b4 (patch)
tree924114efeef59bfe80a0b9f5fec4fdb7acf2800b /src/modules/git_state.rs
parent0fb421969058ec07a09f7c927dddc1258de75631 (diff)
refactor: replace module_config_derive with serde (#3786)
* refactor: replace module_config_derive with serde Changes include: * Removing `starship_module_config_derive` and replacing it with `serde::Deserialize` * Removing `RootModuleConfig::load_config`. While potentially useful, it was only used in tests. And it would require something like `serde::DeserializeSeed` which is not derived by serde. * Merging `RootModuleConfig` into `ModuleConfig` * Implementing a `ValueDeserializer` that holds a reference to a `toml::Value` in `serde_utils.rs` * Deserialization errors (invalid type) are now logged and include the current key and the struct names * Unknown keys are now considered an error. "Did you mean?"-messages are still possible * fix typo Co-authored-by: Matan Kushner <hello@matchai.dev> Co-authored-by: Matan Kushner <hello@matchai.dev>
Diffstat (limited to 'src/modules/git_state.rs')
-rw-r--r--src/modules/git_state.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/git_state.rs b/src/modules/git_state.rs
index 689a4765d..526e8069d 100644
--- a/src/modules/git_state.rs
+++ b/src/modules/git_state.rs
@@ -1,7 +1,7 @@
use git2::RepositoryState;
use std::path::PathBuf;
-use super::{Context, Module, RootModuleConfig};
+use super::{Context, Module, ModuleConfig};
use crate::configs::git_state::GitStateConfig;
use crate::context::Repo;
use crate::formatter::StringFormatter;