diff --git a/lib/line-index/src/lib.rs b/lib/line-index/src/lib.rs index 64a094c63e1a..2898cdc1bfee 100644 --- a/lib/line-index/src/lib.rs +++ b/lib/line-index/src/lib.rs @@ -14,9 +14,9 @@ use text_size::{TextRange, TextSize}; #[derive(Clone, Debug, PartialEq, Eq)] pub struct LineIndex { /// Offset the beginning of each line, zero-based. - pub(crate) newlines: Vec, + newlines: Vec, /// List of non-ASCII characters on each line. - pub(crate) line_wide_chars: NoHashHashMap>, + line_wide_chars: NoHashHashMap>, } /// Line/Column information in native, utf8 format. @@ -49,11 +49,11 @@ pub struct WideLineCol { } #[derive(Clone, Debug, Hash, PartialEq, Eq)] -pub(crate) struct WideChar { +struct WideChar { /// Start offset of a character inside a line, zero-based - pub(crate) start: TextSize, + start: TextSize, /// End offset of a character inside a line, zero-based - pub(crate) end: TextSize, + end: TextSize, } impl WideChar {