Skip to content

Commit d090686

Browse files
committed
chore: cargo checks
1 parent 33063f7 commit d090686

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/display_strategy.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,11 @@ impl DisplayStrategy {
3737
row_count: page_row_count,
3838
controller,
3939
} => {
40-
controller
41-
.page_count_signal
42-
.set(if *page_row_count != 0 {
43-
Some((row_count + *page_row_count - 1) / *page_row_count)
44-
} else {
45-
None
46-
});
40+
controller.page_count_signal.set(if *page_row_count != 0 {
41+
Some(row_count.div_ceil(*page_row_count))
42+
} else {
43+
None
44+
});
4745
}
4846
_ => {
4947
// do nothing

0 commit comments

Comments
 (0)