Skip to content

Commit 41ef1dc

Browse files
committed
Keep clippy happy.
1 parent da126cb commit 41ef1dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generate/peripheral.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ fn cluster_size_in_bits(
607607
// will get expanded in expand_cluster below. The overall size
608608
// then ends at the last array entry.
609609
Cluster::Array(info, dim) => {
610-
if dim.dim <= 0 {
610+
if dim.dim == 0 {
611611
return Ok(0); // Special case!
612612
}
613613
let last_offset = (dim.dim - 1) * dim.dim_increment * BITS_PER_BYTE;

0 commit comments

Comments
 (0)