Derive debug on NewlinePositions to help printing when debugging

pull/25/head
Wilfred Hughes 2019-11-19 13:34:44 +07:00
parent bd95bdc68c
commit 36732af060
1 changed files with 1 additions and 0 deletions

@ -44,6 +44,7 @@ pub struct LineRange {
/// A struct for efficiently converting absolute string positions to
/// line-relative positions.
#[derive(Debug)]
pub struct NewlinePositions {
/// A vector of the start positions of all the lines in `s`.
positions: Vec<usize>,