Skip to content

Commit

Permalink
refactor: update to ratatui v0.26.2
Browse files Browse the repository at this point in the history
Allows for more `const`
EdJoPaTo committed Apr 17, 2024
1 parent 47375d4 commit df4a954
Showing 2 changed files with 16 additions and 27 deletions.
41 changes: 15 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/interactive/details/mod.rs
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ impl Details {
.min(topic_history_length.saturating_sub(1))
}

fn table_index_of_click(&self, column: u16, row: u16) -> Option<usize> {
const fn table_index_of_click(&self, column: u16, row: u16) -> Option<usize> {
let area = self.last_table_area;
if !area.contains(Position { x: column, y: row }) {
return None;

0 comments on commit df4a954

Please sign in to comment.