We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
total_pages
1 parent 31c98b4 commit 1db6a88Copy full SHA for 1db6a88
src/bin/crates-admin/render_readmes.rs
@@ -89,13 +89,7 @@ pub async fn run(opts: Opts) -> anyhow::Result<()> {
89
println!("Rendering {total_versions} versions");
90
91
let page_size = opts.page_size;
92
-
93
- let total_pages = total_versions / page_size;
94
- let total_pages = if total_versions % page_size == 0 {
95
- total_pages
96
- } else {
97
- total_pages + 1
98
- };
+ let total_pages = total_versions.div_ceil(page_size);
99
100
let client = Client::new();
101
0 commit comments