Skip to content

Commit 3d48675

Browse files
committed
Nightly 2015-11-30: Fix for non-exhaustive patterns when using empty structs
See rust-lang/rust#29383 for the breaking change.
1 parent 255528c commit 3d48675

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/errors.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,8 @@ where T: SignedInfinity, E: Into<RangeErrorKind> {
573573
use self::RangeErrorKind::*;
574574
match self.map_err(Into::into) {
575575
Ok(v) => v,
576-
Err(NegOverflow(..)) => T::neg_infinity(),
577-
Err(PosOverflow(..)) => T::pos_infinity(),
576+
Err(NegOverflow) => T::neg_infinity(),
577+
Err(PosOverflow) => T::pos_infinity(),
578578
}
579579
}
580580
}
@@ -599,8 +599,8 @@ where T: Saturated, E: Into<RangeErrorKind> {
599599
use self::RangeErrorKind::*;
600600
match self.map_err(Into::into) {
601601
Ok(v) => v,
602-
Err(NegOverflow(..)) => T::saturated_min(),
603-
Err(PosOverflow(..)) => T::saturated_max(),
602+
Err(NegOverflow) => T::saturated_min(),
603+
Err(PosOverflow) => T::saturated_max(),
604604
}
605605
}
606606
}

0 commit comments

Comments
 (0)