Skip to content

Commit e64e3ea

Browse files
authored
Fix clippy (#94)
* Fix new clippy warning This didn't cause a warning previously, I assume the lint was added in a new version of clippy.
1 parent 8a95ee8 commit e64e3ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pack-asset-compiler/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub fn generate_res_chunk<T: DekuContainerWrite>(
4040
},
4141
data: data_bytes
4242
};
43-
if data.header.chunk_size % 4 != 0 {
43+
if !data.header.chunk_size.is_multiple_of(4) {
4444
unimplemented!("Generic chunk alignment ({:?})", data);
4545
}
4646
Ok(data)

0 commit comments

Comments
 (0)