diff --git a/crates/nu-protocol/src/value/range.rs b/crates/nu-protocol/src/value/range.rs index 56fc052fdc..c4636f61ea 100644 --- a/crates/nu-protocol/src/value/range.rs +++ b/crates/nu-protocol/src/value/range.rs @@ -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) }