diff --git a/src/range_map.rs b/src/range_map.rs index 5cdcbe35121a..df1235f96c0d 100644 --- a/src/range_map.rs +++ b/src/range_map.rs @@ -19,7 +19,7 @@ pub struct RangeMap { // 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 }