summaryrefslogtreecommitdiffstats
path: root/starship_module_config_derive/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'starship_module_config_derive/src/lib.rs')
-rw-r--r--starship_module_config_derive/src/lib.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/starship_module_config_derive/src/lib.rs b/starship_module_config_derive/src/lib.rs
index b6d11326a..4dd0ed7dc 100644
--- a/starship_module_config_derive/src/lib.rs
+++ b/starship_module_config_derive/src/lib.rs
@@ -47,8 +47,11 @@ fn impl_module_config(dinput: DeriveInput) -> proc_macro::TokenStream {
fn load_config(&self, config: &'a toml::Value) -> Self {
let mut new_module_config = self.clone();
if let toml::Value::Table(config) = config {
- if config.get("prefix").is_some() || config.get("suffix").is_some() {
- log::warn!("You're using the outdated config format! Migrate your config here: https://starship.rs/migrating-to-0.45.0/")
+ if config.get("prefix").is_some() {
+ log::warn!("\"prefix\" has been removed in favor of \"format\". For more details, see: https://starship.rs/migrating-to-0.45.0/")
+ }
+ if config.get("suffix").is_some() {
+ log::warn!("\"suffix\" has been removed in favor of \"format\". For more details, see: https://starship.rs/migrating-to-0.45.0/")
}
#load_tokens
}