ratatui-org / crates-tui

A TUI for exploring crates.io using Ratatui
MIT License
59 stars 4 forks source link

refactor: fails to compile because borrow checker is not happy #5

Closed kdheepak closed 5 months ago

kdheepak commented 5 months ago
error[E0502]: cannot borrow  as mutable because it is also borrowed as immutable
   --> src/app.rs:584:51
    |
584 |         state.prompt_widget().render(prompt, buf, &mut state.prompt);
    |         -----                 ------              ^^^^^^^^^^^^^^^^^ mutable borrow occurs here
    |         |                     |
    |         |                     immutable borrow later used by call
    |         immutable borrow occurs here