Workaround for rustc bug

This commit is contained in:
bjorn3 2018-07-10 17:20:07 +02:00
parent 5b7bb32b0e
commit f321593655

View file

@ -19,7 +19,7 @@ pub struct RangeMap<T> {
// At the same time the `end` is irrelevant for the sorting and range searching, but used for the check.
// This kind of search breaks, if `end < start`, so don't do that!
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Debug)]
struct Range {
pub struct Range {
start: u64,
end: u64, // Invariant: end > start
}