From f1b134f51254e82f352a06aae9557cc4570627de Mon Sep 17 00:00:00 2001 From: Joris Date: Mon, 21 Nov 2022 15:39:03 +0100 Subject: Use f-strings when convenient --- src/gui/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/util.rs') 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}") } -- cgit v1.2.3