Change helper method visibility

This commit is contained in:
Arthur Targaryen 2021-10-09 18:02:05 +02:00
parent 9e7e8ed48f
commit 4e443b2088

View File

@ -104,11 +104,11 @@ impl Range {
})
}
pub fn moves_up(&self) -> bool {
fn moves_up(&self) -> bool {
self.from <= self.to
}
pub fn is_end_inclusive(&self) -> bool {
fn is_end_inclusive(&self) -> bool {
matches!(self.inclusion, RangeInclusion::Inclusive)
}