diff options
-rw-r--r-- | crates/ra_hir_def/src/path.rs | 2 | ||||
-rw-r--r-- | crates/rust-analyzer/Cargo.toml | 4 | ||||
-rw-r--r-- | docs/dev/README.md | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/crates/ra_hir_def/src/path.rs b/crates/ra_hir_def/src/path.rs index e84efe2ab..4512448e0 100644 --- a/crates/ra_hir_def/src/path.rs +++ b/crates/ra_hir_def/src/path.rs | |||
@@ -273,7 +273,7 @@ impl From<Name> for ModPath { | |||
273 | impl Display for ModPath { | 273 | impl Display for ModPath { |
274 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { | 274 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
275 | let mut first_segment = true; | 275 | let mut first_segment = true; |
276 | let mut add_segment = |s| { | 276 | let mut add_segment = |s| -> fmt::Result { |
277 | if !first_segment { | 277 | if !first_segment { |
278 | f.write_str("::")?; | 278 | f.write_str("::")?; |
279 | } | 279 | } |
diff --git a/crates/rust-analyzer/Cargo.toml b/crates/rust-analyzer/Cargo.toml index 65b487db3..458089e53 100644 --- a/crates/rust-analyzer/Cargo.toml +++ b/crates/rust-analyzer/Cargo.toml | |||
@@ -10,7 +10,7 @@ doctest = false | |||
10 | 10 | ||
11 | [[bin]] | 11 | [[bin]] |
12 | name = "rust-analyzer" | 12 | name = "rust-analyzer" |
13 | path = "./src/bin/main.rs" | 13 | path = "src/bin/main.rs" |
14 | 14 | ||
15 | [dependencies] | 15 | [dependencies] |
16 | anyhow = "1.0.26" | 16 | anyhow = "1.0.26" |
@@ -32,7 +32,7 @@ threadpool = "1.7.1" | |||
32 | 32 | ||
33 | stdx = { path = "../stdx" } | 33 | stdx = { path = "../stdx" } |
34 | 34 | ||
35 | lsp-server = "0.3.1" | 35 | lsp-server = "0.3.2" |
36 | ra_flycheck = { path = "../ra_flycheck" } | 36 | ra_flycheck = { path = "../ra_flycheck" } |
37 | ra_ide = { path = "../ra_ide" } | 37 | ra_ide = { path = "../ra_ide" } |
38 | ra_prof = { path = "../ra_prof" } | 38 | ra_prof = { path = "../ra_prof" } |
diff --git a/docs/dev/README.md b/docs/dev/README.md index 1de5a2aab..194a40e15 100644 --- a/docs/dev/README.md +++ b/docs/dev/README.md | |||
@@ -170,7 +170,7 @@ https://www.tedinski.com/2018/02/06/system-boundaries.html | |||
170 | 170 | ||
171 | We separate import groups with blank lines | 171 | We separate import groups with blank lines |
172 | 172 | ||
173 | ``` | 173 | ```rust |
174 | mod x; | 174 | mod x; |
175 | mod y; | 175 | mod y; |
176 | 176 | ||
@@ -195,7 +195,7 @@ Put `struct`s and `enum`s first, functions and impls last. | |||
195 | 195 | ||
196 | Do | 196 | Do |
197 | 197 | ||
198 | ``` | 198 | ```rust |
199 | // Good | 199 | // Good |
200 | struct Foo { | 200 | struct Foo { |
201 | bars: Vec<Bar> | 201 | bars: Vec<Bar> |
@@ -206,7 +206,7 @@ struct Bar; | |||
206 | 206 | ||
207 | rather than | 207 | rather than |
208 | 208 | ||
209 | ``` | 209 | ```rust |
210 | // Not as good | 210 | // Not as good |
211 | struct Bar; | 211 | struct Bar; |
212 | 212 | ||