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/gui/util.rs | |
parent | a8422f43da46c010ec58666035ad0a6c2254c1ff (diff) |
Use f-strings when convenient
Diffstat (limited to 'src/gui/util.rs')
-rw-r--r-- | src/gui/util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/util.rs b/src/gui/util.rs index 2314aba..c62c755 100644 --- a/src/gui/util.rs +++ b/src/gui/util.rs @@ -17,5 +17,5 @@ pub fn center_vertically(chunk: Rect, text: &str) -> String { let chunk_inner_lines: usize = (chunk.height - 2).into(); let blank_lines = chunk_inner_lines - text_lines; let newlines = "\n".repeat(blank_lines / 2); - format!("{}{}", newlines, text) + format!("{newlines}{text}") } |