Skip to content

Commit a9798b9

Browse files
eva-cosmaaddrian-77
authored andcommitted
fix: update clippy to latest stable (1.90.0)
Signed-off-by: Eva Cosma <eva.cosma.mail@gmail.com>
1 parent 8bc610a commit a9798b9

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tbf-parser/src/parse.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,10 @@ pub fn parse_tbf_header(
203203
}
204204
types::TbfHeaderTypes::TbfHeaderWriteableFlashRegions => {
205205
// Length must be a multiple of the size of a region definition.
206-
if tlv_header.length as usize
207-
% mem::size_of::<types::TbfHeaderV2WriteableFlashRegion>()
208-
== 0
206+
if (tlv_header.length as usize)
207+
.is_multiple_of(mem::size_of::<
208+
types::TbfHeaderV2WriteableFlashRegion,
209+
>())
209210
{
210211
// Calculate how many writeable flash regions
211212
// there are specified in this header.

0 commit comments

Comments
 (0)