diff options
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}") } |