diff --git a/crates/djls-source/src/position.rs b/crates/djls-source/src/position.rs index b4c5e81..57f4f90 100644 --- a/crates/djls-source/src/position.rs +++ b/crates/djls-source/src/position.rs @@ -39,11 +39,6 @@ impl Span { Self::new(start_expand, length_expand) } - #[must_use] - pub fn as_tuple(self) -> (u32, u32) { - (self.start, self.length) - } - /// Construct a span from integer bounds expressed as byte offsets. #[must_use] pub fn from_bounds(start: usize, end: usize) -> Self { @@ -60,6 +55,11 @@ impl Span { Span::new(start_u32, length_u32) } + #[must_use] + pub fn as_tuple(self) -> (u32, u32) { + (self.start, self.length) + } + #[must_use] pub fn start_offset(&self) -> ByteOffset { ByteOffset(self.start)