Skip to content

Commit

Permalink
chore(cli): Patchup strings used in UI after refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed May 10, 2024
1 parent ee18a0c commit 0724a85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ pub struct SubcommandHeaderMessages {

impl SubcommandHeaderMessages {
pub fn new(key: &str) -> Self {
let msg = LocalText::new(key).fmt().to_string();
let msg_key = format!("{key}-header");
let msg = LocalText::new(msg_key.as_str()).fmt().to_string();
let good_key = format!("{key}-good");
let good_msg = LocalText::new(good_key.as_str()).fmt();
let bad_key = format!("{key}-bad");
Expand Down

0 comments on commit 0724a85

Please sign in to comment.