From e87346950039a54c3f0b02d6056cbb92ca38eb28 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 25 Apr 2020 11:52:10 +0200 Subject: text-size 1.0.0 --- crates/ra_ide/src/completion/complete_unqualified_path.rs | 12 ++++++------ crates/ra_syntax/Cargo.toml | 2 +- crates/ra_text_edit/Cargo.toml | 2 +- crates/ra_text_edit/src/text_edit.rs | 2 +- crates/test_utils/Cargo.toml | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) (limited to 'crates') diff --git a/crates/ra_ide/src/completion/complete_unqualified_path.rs b/crates/ra_ide/src/completion/complete_unqualified_path.rs index b2af81ae5..56cd086c6 100644 --- a/crates/ra_ide/src/completion/complete_unqualified_path.rs +++ b/crates/ra_ide/src/completion/complete_unqualified_path.rs @@ -1333,8 +1333,8 @@ mod tests { [ CompletionItem { label: "f()", - source_range: [98; 99), - delete: [98; 99), + source_range: 98..99, + delete: 98..99, insert: "f()$0", kind: Function, lookup: "f", @@ -1342,15 +1342,15 @@ mod tests { }, CompletionItem { label: "m", - source_range: [98; 99), - delete: [98; 99), + source_range: 98..99, + delete: 98..99, insert: "m", kind: Module, }, CompletionItem { label: "m::E::V", - source_range: [98; 99), - delete: [98; 99), + source_range: 98..99, + delete: 98..99, insert: "m::E::V", kind: EnumVariant, detail: "()", diff --git a/crates/ra_syntax/Cargo.toml b/crates/ra_syntax/Cargo.toml index dda396582..7ffe46c69 100644 --- a/crates/ra_syntax/Cargo.toml +++ b/crates/ra_syntax/Cargo.toml @@ -12,7 +12,7 @@ doctest = false [dependencies] itertools = "0.9.0" -rowan = { path = "../../../rowan" } +rowan = "0.10.0" rustc_lexer = { version = "652.0.0", package = "rustc-ap-rustc_lexer" } rustc-hash = "1.1.0" arrayvec = "0.5.1" diff --git a/crates/ra_text_edit/Cargo.toml b/crates/ra_text_edit/Cargo.toml index 9b0567c98..46a2ab68f 100644 --- a/crates/ra_text_edit/Cargo.toml +++ b/crates/ra_text_edit/Cargo.toml @@ -9,4 +9,4 @@ publish = false doctest = false [dependencies] -text-size = { path = "../../../text-size" } +text-size = "1.0.0" diff --git a/crates/ra_text_edit/src/text_edit.rs b/crates/ra_text_edit/src/text_edit.rs index db69a7e7b..eabab4b4d 100644 --- a/crates/ra_text_edit/src/text_edit.rs +++ b/crates/ra_text_edit/src/text_edit.rs @@ -1,7 +1,7 @@ //! FIXME: write short doc here use crate::AtomTextEdit; -// TODO: fix Cargo.toml + use text_size::{TextRange, TextSize}; #[derive(Debug, Clone)] diff --git a/crates/test_utils/Cargo.toml b/crates/test_utils/Cargo.toml index 652ab4537..8ec986bcb 100644 --- a/crates/test_utils/Cargo.toml +++ b/crates/test_utils/Cargo.toml @@ -9,5 +9,5 @@ doctest = false [dependencies] difference = "2.0.0" -text-size = { path = "../../../text-size" } +text-size = "1.0.0" serde_json = "1.0.48" -- cgit v1.2.3