Skip to content

Commit

Permalink
Mention in docs that custom keys cannot overide default ones
Browse files Browse the repository at this point in the history
  • Loading branch information
redzic committed Jul 9, 2021
1 parent 574464b commit 14a24ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/style.rs
Expand Up @@ -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
Expand Down

0 comments on commit 14a24ed

Please sign in to comment.