This commit is contained in:
Robin Appelman 2024-12-16 22:43:49 +01:00
commit a664daa606
6 changed files with 267 additions and 142 deletions

View file

@ -244,7 +244,7 @@ impl<'a> UiState<'a> {
}
}
pub fn process(self, event: UiEvent, app: &'a App<'a>) -> (bool, UiState) {
pub fn process(self, event: UiEvent, app: &'a App<'a>) -> (bool, UiState<'a>) {
match (self, event) {
(UiState::Quit, _) => (true, UiState::Quit),
(_, UiEvent::Quit) => (true, UiState::Quit),

View file

@ -116,7 +116,7 @@ impl ScrollbarTableState {
}
}
impl<'a> StatefulWidget for ScrollbarTable<'a> {
impl StatefulWidget for ScrollbarTable<'_> {
type State = ScrollbarTableState;
fn render(self, area: Rect, buf: &mut Buffer, state: &mut Self::State) {