mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 07:04:22 +00:00
Use pre.1, tweak comment
This commit is contained in:
parent
1ad0779a00
commit
594a41e7bf
4 changed files with 11 additions and 7 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -919,7 +919,7 @@ version = "0.0.0"
|
|||
|
||||
[[package]]
|
||||
name = "line-index"
|
||||
version = "0.1.0"
|
||||
version = "0.1.0-pre.1"
|
||||
dependencies = [
|
||||
"nohash-hasher",
|
||||
"text-size",
|
||||
|
|
|
@ -74,10 +74,14 @@ toolchain = { path = "./crates/toolchain", version = "0.0.0" }
|
|||
tt = { path = "./crates/tt", version = "0.0.0" }
|
||||
vfs-notify = { path = "./crates/vfs-notify", version = "0.0.0" }
|
||||
vfs = { path = "./crates/vfs", version = "0.0.0" }
|
||||
line-index = { version = "0.1.0", path = "./lib/line-index" }
|
||||
line-index = { version = "0.1.0-pre.1", path = "./lib/line-index" }
|
||||
|
||||
# non-local crates
|
||||
smallvec = { version = "1.10.0", features = ["const_new", "union", "const_generics"] }
|
||||
smallvec = { version = "1.10.0", features = [
|
||||
"const_new",
|
||||
"union",
|
||||
"const_generics",
|
||||
] }
|
||||
smol_str = "0.2.0"
|
||||
nohash-hasher = "0.2.0"
|
||||
text-size = "1.1.0"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "line-index"
|
||||
version = "0.1.0"
|
||||
description = "Maps flat `TextSize` offsets into `(line, column)` representation."
|
||||
version = "0.1.0-pre.1"
|
||||
description = "Maps flat `TextSize` offsets to/from `(line, column)` representation."
|
||||
license = "MIT OR Apache-2.0"
|
||||
repository = "https://github.com/rust-lang/rust-analyzer/tree/master/lib/line-index"
|
||||
edition = "2021"
|
||||
|
|
|
@ -79,8 +79,8 @@ impl WideChar {
|
|||
}
|
||||
}
|
||||
|
||||
/// Maps flat [`TextSize`] offsets into `(line, column)` representation.
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
/// Maps flat [`TextSize`] offsets to/from `(line, column)` representation.
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct LineIndex {
|
||||
/// Offset the beginning of each line, zero-based.
|
||||
newlines: Box<[TextSize]>,
|
||||
|
|
Loading…
Reference in a new issue