forked from trinitrix/core
Fix(UI): Removed unneeded mut statements
This commit is contained in:
parent
20be391b9e
commit
ce59c504bd
|
@ -105,7 +105,7 @@ impl SetupUI<'_> {
|
||||||
let mut homeserver = TextArea::new(vec!["https://matrix.org".to_string()]);
|
let mut homeserver = TextArea::new(vec!["https://matrix.org".to_string()]);
|
||||||
let mut username = TextArea::default();
|
let mut username = TextArea::default();
|
||||||
let mut password = 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));
|
homeserver.set_block(Block::default().title("Homeserver").borders(Borders::ALL));
|
||||||
username.set_block(Block::default().title("Username").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 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
|
// define a 32 * 6 chunk in the middle of the screen
|
||||||
let mut chunk = terminal.size()?;
|
let mut chunk = terminal.size()?;
|
||||||
|
|
Loading…
Reference in New Issue