Skip to content

Commit 48f50c8

Browse files
authored
fix clippy
1 parent 9a881e5 commit 48f50c8

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/conversions/num_bigint.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,7 @@ fn int_to_u32_vec<const SIGNED: bool>(long: &Bound<'_, PyInt>) -> PyResult<Vec<u
281281
// SAFETY: `n_bytes_unsigned <= isize::MAX` (try_into above) and
282282
// `n_digits * 4 <= n_bytes_unsigned + 3`
283283
#[expect(clippy::checked_conversions)]
284-
unsafe {
285-
core::hint::assert_unchecked(n_digits * 4 <= isize::MAX as usize)
286-
};
284+
core::hint::assert_unchecked(n_digits * 4 <= isize::MAX as usize)
287285
ffi::PyLong_AsNativeBytes(
288286
long.as_ptr().cast(),
289287
buffer.as_mut_ptr().cast(),

0 commit comments

Comments
 (0)