diff options
author | Joris | 2022-11-21 15:39:03 +0100 |
---|---|---|
committer | Joris | 2022-11-21 15:39:03 +0100 |
commit | f1b134f51254e82f352a06aae9557cc4570627de (patch) | |
tree | e33fc88b3a601904059163a60d9b7b2f2b54dbe4 /src/util/event.rs | |
parent | a8422f43da46c010ec58666035ad0a6c2254c1ff (diff) |
Use f-strings when convenient
Diffstat (limited to 'src/util/event.rs')
-rw-r--r-- | src/util/event.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/event.rs b/src/util/event.rs index 05d8581..379df99 100644 --- a/src/util/event.rs +++ b/src/util/event.rs @@ -45,7 +45,7 @@ impl Events { let stdin = io::stdin(); for key in stdin.keys().flatten() { if let Err(err) = tx.send(Event::Input(key)) { - eprintln!("{}", err); + eprintln!("{err}"); return; } } @@ -54,7 +54,7 @@ impl Events { let tick_handle = { thread::spawn(move || loop { if let Err(err) = tx.send(Event::Tick) { - eprintln!("{}", err); + eprintln!("{err}"); break; } thread::sleep(config.tick_rate); |