clippy: fix error from manual_div_ceil lint

This commit is contained in:
Daniel Hofstetter
2025-04-03 15:17:55 +02:00
committed by Sylvestre Ledru
parent 55021afb69
commit 5cb273eecb
+1 -1
View File
@@ -401,7 +401,7 @@ fn format_directive<'entry>(
// even though it's arguably not 100% correct.
if *large_blocks {
// Ceiling divide in half.
(blocks + 1) / 2
blocks.div_ceil(2)
} else {
blocks
}