Skip to content

Commit c8fa47a

Browse files
generatedunixname89002005320881meta-codesync[bot]
authored andcommitted
[QuickReview][Codemod][Lint:fbsource:RUSTFIX:clippy::manual_is_multiple_of] Fix clippy::manual_is_multiple_of issues in fbcode/antlir/btrfs_send_stream_upgrade/tests
Reviewed By: vjt Differential Revision: D89444663 fbshipit-source-id: 005e4abed72d26d4e1e67962874d933bd0293f93
1 parent 620699c commit c8fa47a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

antlir/btrfs_send_stream_upgrade/tests/test_read_once_buffer_cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const MAX_HALF_LENGTH: u16 = 9;
3030

3131
fn reader(cache: &ReadOnceBufferCache, to_read: Vec<u16>, id: usize) {
3232
let length = to_read.len();
33-
if length % 2 != 0 {
33+
if !length.is_multiple_of(2) {
3434
panic!("Expected an even number of elements, got {}", length);
3535
}
3636
let mut last_end = 0;

0 commit comments

Comments
 (0)