From 14a24ed3a3218148e50bc0ae09d189f6e8a2fd2c Mon Sep 17 00:00:00 2001 From: Redzic Date: Fri, 9 Jul 2021 13:59:12 -0400 Subject: [PATCH] Mention in docs that custom keys cannot overide default ones --- src/style.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/style.rs b/src/style.rs index ec6496c7..176e5b98 100644 --- a/src/style.rs +++ b/src/style.rs @@ -145,6 +145,8 @@ impl ProgressStyle { } /// Adds a custom key that references a `&ProgressState` to the template + /// + /// Note that custom keys cannot override built-in template keys. pub fn with_key(mut self, key: &'static str, f: Format) -> ProgressStyle { self.format_map.0.insert(key, f); self