Skip to content

Commit

Permalink
Remove redundant requirement condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ShoyuVanilla committed Jan 8, 2025
1 parent eff95b8 commit f34da06
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions library/core/src/convert/num.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ macro_rules! impl_float_to_int {
impl FloatToInt<$Int> for $Float {
#[inline]
#[requires(
!self.is_nan() &&
self.is_finite() &&
float_to_int_in_range::<$Float, $Int>(self)
self.is_finite() && float_to_int_in_range::<$Float, $Int>(self)
)]
unsafe fn to_int_unchecked(self) -> $Int {
// SAFETY: the safety contract must be upheld by the caller.
Expand Down

0 comments on commit f34da06

Please sign in to comment.