remove misleading contains method
@@ -26,14 +26,9 @@ impl RangeType {
.unwrap()
}
- #[inline]
- pub fn contains(&self, value: &BigInt) -> bool {
- value >= &self.start && value < &self.end
- }
-
#[inline]
pub fn index_of(&self, value: &BigInt) -> Option<BigInt> {
- if !self.contains(value) {
+ if value < &self.start || value >= &self.end {
return None;
}
