Skip to content

Commit

Permalink
Nightly 2015-11-30: Fix for non-exhaustive patterns when using empty …
Browse files Browse the repository at this point in the history
…structs

See rust-lang/rust#29383 for the breaking change.
  • Loading branch information
m4rw3r committed Nov 30, 2015
1 parent 255528c commit 3d48675
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,8 @@ where T: SignedInfinity, E: Into<RangeErrorKind> {
use self::RangeErrorKind::*;
match self.map_err(Into::into) {
Ok(v) => v,
Err(NegOverflow(..)) => T::neg_infinity(),
Err(PosOverflow(..)) => T::pos_infinity(),
Err(NegOverflow) => T::neg_infinity(),
Err(PosOverflow) => T::pos_infinity(),
}
}
}
Expand All @@ -599,8 +599,8 @@ where T: Saturated, E: Into<RangeErrorKind> {
use self::RangeErrorKind::*;
match self.map_err(Into::into) {
Ok(v) => v,
Err(NegOverflow(..)) => T::saturated_min(),
Err(PosOverflow(..)) => T::saturated_max(),
Err(NegOverflow) => T::saturated_min(),
Err(PosOverflow) => T::saturated_max(),
}
}
}

0 comments on commit 3d48675

Please sign in to comment.