We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b8e56d commit ae73e7bCopy full SHA for ae73e7b
1 file changed
geth-mikoshi/src/constants.rs
@@ -5,7 +5,7 @@ pub const _CHUNK_FILE_SIZE: usize =
5
_aligned_size(CHUNK_SIZE + CHUNK_HEADER_SIZE + CHUNK_FOOTER_SIZE);
6
7
const fn _aligned_size(size: usize) -> usize {
8
- if size % 4_096 == 0 {
+ if size.is_multiple_of(4_096) {
9
return size;
10
}
11
0 commit comments