Skip to content

Commit b2d5e8d

Browse files
committed
fix: use div_ceil instead of manual implementation
1 parent 83f6a6e commit b2d5e8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nora-registry/src/ui/templates.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ pub fn render_registry_list_paginated(
341341
};
342342

343343
// Pagination
344-
let total_pages = (total + limit - 1) / limit;
344+
let total_pages = total.div_ceil(limit);
345345
let start_item = if total == 0 {
346346
0
347347
} else {

0 commit comments

Comments
 (0)