Skip to content

Commit f4e57dc

Browse files
andreeaflorescujiangliu
authored andcommitted
fix clippy warnings
Explicitly define the type of const instead of using `as` to convert it to the needed type. Signed-off-by: Andreea Florescu <[email protected]>
1 parent f6e0b8b commit f4e57dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fam.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ mod tests {
794794
// check that the len has been increased and zero-initialized elements have been added
795795
assert_eq!(adapter.len(), desired_len);
796796
for element in adapter.as_slice() {
797-
assert_eq!(*element, 0 as u32);
797+
assert_eq!(*element, 0_u32);
798798
}
799799

800800
// decrease len

0 commit comments

Comments
 (0)