Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'lib/line-index/src/lib.rs')
-rw-r--r--lib/line-index/src/lib.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/line-index/src/lib.rs b/lib/line-index/src/lib.rs
index 64a094c63e..2898cdc1bf 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<TextSize>,
+ newlines: Vec<TextSize>,
/// List of non-ASCII characters on each line.
- pub(crate) line_wide_chars: NoHashHashMap<u32, Vec<WideChar>>,
+ line_wide_chars: NoHashHashMap<u32, Vec<WideChar>>,
}
/// 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 {