Skip to content

Commit 713f068

Browse files
committed
chore: fix clippy
Signed-off-by: Dmitry Dygalo <dmitry.dygalo@workato.com>
1 parent a0a6405 commit 713f068

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rust/ruby-prism/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ impl<'pr> Integer<'pr> {
253253

254254
/// Returns the sign and the u32 digits representation of the integer,
255255
/// ordered least significant digit first.
256+
#[must_use]
256257
pub fn to_u32_digits(&self) -> (bool, &[u32]) {
257258
let negative = unsafe { (*self.pointer).negative };
258259
let length = unsafe { (*self.pointer).length };
@@ -1184,7 +1185,7 @@ end
11841185
let (negative, digits) = integer.to_u32_digits();
11851186

11861187
assert!(!negative);
1187-
assert_eq!(digits, &[4294967295, 4294967295, 4294967295, 2147483647]);
1188+
assert_eq!(digits, &[4_294_967_295, 4_294_967_295, 4_294_967_295, 2_147_483_647]);
11881189
}
11891190

11901191
#[test]

0 commit comments

Comments
 (0)