Skip to content

Commit 3643330

Browse files
committed
Remove redundant requirement condition
1 parent 6ae0a63 commit 3643330

File tree

1 file changed

+1
-3
lines changed
  • library/core/src/convert

1 file changed

+1
-3
lines changed

library/core/src/convert/num.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ macro_rules! impl_float_to_int {
3232
impl FloatToInt<$Int> for $Float {
3333
#[inline]
3434
#[requires(
35-
!self.is_nan() &&
36-
self.is_finite() &&
37-
float_to_int_in_range::<$Float, $Int>(self)
35+
self.is_finite() && float_to_int_in_range::<$Float, $Int>(self)
3836
)]
3937
unsafe fn to_int_unchecked(self) -> $Int {
4038
// SAFETY: the safety contract must be upheld by the caller.

0 commit comments

Comments
 (0)