Skip to content

Commit 594a41e

Browse files
committed
Use pre.1, tweak comment
1 parent 1ad0779 commit 594a41e

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,14 @@ toolchain = { path = "./crates/toolchain", version = "0.0.0" }
7474
tt = { path = "./crates/tt", version = "0.0.0" }
7575
vfs-notify = { path = "./crates/vfs-notify", version = "0.0.0" }
7676
vfs = { path = "./crates/vfs", version = "0.0.0" }
77-
line-index = { version = "0.1.0", path = "./lib/line-index" }
77+
line-index = { version = "0.1.0-pre.1", path = "./lib/line-index" }
7878

7979
# non-local crates
80-
smallvec = { version = "1.10.0", features = ["const_new", "union", "const_generics"] }
80+
smallvec = { version = "1.10.0", features = [
81+
"const_new",
82+
"union",
83+
"const_generics",
84+
] }
8185
smol_str = "0.2.0"
8286
nohash-hasher = "0.2.0"
8387
text-size = "1.1.0"

lib/line-index/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "line-index"
3-
version = "0.1.0"
4-
description = "Maps flat `TextSize` offsets into `(line, column)` representation."
3+
version = "0.1.0-pre.1"
4+
description = "Maps flat `TextSize` offsets to/from `(line, column)` representation."
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/rust-lang/rust-analyzer/tree/master/lib/line-index"
77
edition = "2021"

lib/line-index/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ impl WideChar {
7979
}
8080
}
8181

82-
/// Maps flat [`TextSize`] offsets into `(line, column)` representation.
83-
#[derive(Clone, Debug, PartialEq, Eq)]
82+
/// Maps flat [`TextSize`] offsets to/from `(line, column)` representation.
83+
#[derive(Debug, Clone, PartialEq, Eq)]
8484
pub struct LineIndex {
8585
/// Offset the beginning of each line, zero-based.
8686
newlines: Box<[TextSize]>,

0 commit comments

Comments
 (0)