refactor: use multi character variable name

This commit is contained in:
EdJoPaTo
2024-02-22 18:38:52 +01:00
parent 5d750b13b0
commit ec359d513b
5 changed files with 53 additions and 34 deletions
+3 -3
View File
@@ -92,8 +92,8 @@ fn main() -> Result<(), Box<dyn Error>> {
fn run_app<B: Backend>(terminal: &mut Terminal<B>, mut app: App) -> io::Result<()> {
loop {
terminal.draw(|f| {
let area = f.size();
terminal.draw(|frame| {
let area = frame.size();
let items = Tree::new(app.items.clone())
.expect("all item identifiers are unique")
@@ -105,7 +105,7 @@ fn run_app<B: Backend>(terminal: &mut Terminal<B>, mut app: App) -> io::Result<(
.add_modifier(Modifier::BOLD),
)
.highlight_symbol(">> ");
f.render_stateful_widget(items, area, &mut app.state);
frame.render_stateful_widget(items, area, &mut app.state);
})?;
match event::read()? {