summaryrefslogtreecommitdiffstats
path: root/src/tui/app.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tui/app.rs')
-rw-r--r--src/tui/app.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tui/app.rs b/src/tui/app.rs
index 0f05d2c..647ef3e 100644
--- a/src/tui/app.rs
+++ b/src/tui/app.rs
@@ -218,7 +218,7 @@ fn pretty_score(score: i32) -> StyledString {
Color::Light(BaseColor::Red)
};
SpannedString::styled(
- format!("({}) ", score),
+ format!("({score}) "),
Style::merge(&[Style::from(color), Style::from(Effect::Bold)]),
)
}
@@ -262,7 +262,7 @@ pub fn temp_feedback_msg(siv: &mut Cursive, msg: io::Result<String>) {
} else {
Color::Light(BaseColor::Red)
};
- let content = msg.unwrap_or_else(|e| format!("error: {}", e));
+ let content = msg.unwrap_or_else(|e| format!("error: {e}"));
let styled_content = SpannedString::styled(content, style);
let layer = Dialog::around(TextView::new(styled_content));
let temp = TempView::new(layer, siv.cb_sink().clone());