We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 255528c commit 3d48675Copy full SHA for 3d48675
src/errors.rs
@@ -573,8 +573,8 @@ where T: SignedInfinity, E: Into<RangeErrorKind> {
573
use self::RangeErrorKind::*;
574
match self.map_err(Into::into) {
575
Ok(v) => v,
576
- Err(NegOverflow(..)) => T::neg_infinity(),
577
- Err(PosOverflow(..)) => T::pos_infinity(),
+ Err(NegOverflow) => T::neg_infinity(),
+ Err(PosOverflow) => T::pos_infinity(),
578
}
579
580
@@ -599,8 +599,8 @@ where T: Saturated, E: Into<RangeErrorKind> {
599
600
601
602
- Err(NegOverflow(..)) => T::saturated_min(),
603
- Err(PosOverflow(..)) => T::saturated_max(),
+ Err(NegOverflow) => T::saturated_min(),
+ Err(PosOverflow) => T::saturated_max(),
604
605
606
0 commit comments