diff options
author | Matan Kushner <hello@matchai.dev> | 2020-09-29 12:35:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-29 12:35:11 -0400 |
commit | 59f939e25ce5833955c61e8c58af394c54cf93b8 (patch) | |
tree | 90b023b19c72bf3ba840472ff05b7d487984d180 /starship_module_config_derive | |
parent | cb4d7d1908e1f9a3d0887b4912ac5d8d6523fd41 (diff) |
chore: update v0.45.0 removal notice (#1687)
* chore: update deprecation notice
* Add deprecation page to sidebar
* Replace the use of "deprected" with "removed"
Diffstat (limited to 'starship_module_config_derive')
-rw-r--r-- | starship_module_config_derive/src/lib.rs | 7 |
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 } |