aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorJoris2022-11-21 15:39:03 +0100
committerJoris2022-11-21 15:39:03 +0100
commitf1b134f51254e82f352a06aae9557cc4570627de (patch)
treee33fc88b3a601904059163a60d9b7b2f2b54dbe4 /src/main.rs
parenta8422f43da46c010ec58666035ad0a6c2254c1ff (diff)
downloadflashcards-f1b134f51254e82f352a06aae9557cc4570627de.tar.gz
flashcards-f1b134f51254e82f352a06aae9557cc4570627de.tar.bz2
flashcards-f1b134f51254e82f352a06aae9557cc4570627de.zip
Use f-strings when convenient
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index c2373f4..4ca3822 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -28,7 +28,7 @@ fn main() -> Result<()> {
Ok(()) => Ok(()),
Err(msg) => {
// Show errors in TUI, otherwise they are hidden
- gui::message::show(&mut term, &events, &deck_name, &format!("{}", msg), true)?;
+ gui::message::show(&mut term, &events, &deck_name, &format!("{msg}"), true)?;
Err(msg)
}
}