From ce59c504bd5cf6732575f480393b0c08e6c4fdc5 Mon Sep 17 00:00:00 2001 From: antifallobst Date: Mon, 10 Jul 2023 21:28:37 +0200 Subject: [PATCH] Fix(UI): Removed unneeded mut statements --- src/ui/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/mod.rs b/src/ui/mod.rs index 67ebd18..60b7ca0 100644 --- a/src/ui/mod.rs +++ b/src/ui/mod.rs @@ -105,7 +105,7 @@ impl SetupUI<'_> { let mut homeserver = TextArea::new(vec!["https://matrix.org".to_string()]); let mut username = TextArea::default(); let mut password = TextArea::default(); - let mut password_data = TextArea::default(); + let password_data = TextArea::default(); homeserver.set_block(Block::default().title("Homeserver").borders(Borders::ALL)); username.set_block(Block::default().title("Username").borders(Borders::ALL)); @@ -202,7 +202,7 @@ impl SetupUI<'_> { let block = Block::default().title("Login").borders(Borders::ALL); - let mut ok = Paragraph::new(content_ok).alignment(Alignment::Center); + let ok = Paragraph::new(content_ok).alignment(Alignment::Center); // define a 32 * 6 chunk in the middle of the screen let mut chunk = terminal.size()?;