aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-12-08 16:28:24 +0000
committerAleksey Kladov <[email protected]>2018-12-08 16:28:24 +0000
commite096867ada7c298dd9dc533880424c4d9b62cd34 (patch)
tree18cf5d48328dc8abccd1200aa2a279101ecb308d /crates
parentf88e0700e6c4a9b195739154f8683704762df1bd (diff)
reformat
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_analysis/src/imp.rs4
-rw-r--r--crates/ra_lsp_server/src/main_loop/handlers.rs1
2 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_analysis/src/imp.rs b/crates/ra_analysis/src/imp.rs
index 07357fc84..99bcf0666 100644
--- a/crates/ra_analysis/src/imp.rs
+++ b/crates/ra_analysis/src/imp.rs
@@ -326,7 +326,9 @@ impl AnalysisImpl {
326 pub fn doc_text_for(&self, file_id: FileId, symbol: FileSymbol) -> Cancelable<Option<String>> { 326 pub fn doc_text_for(&self, file_id: FileId, symbol: FileSymbol) -> Cancelable<Option<String>> {
327 let file = self.db.source_file(file_id); 327 let file = self.db.source_file(file_id);
328 let result = match (symbol.description(&file), symbol.docs(&file)) { 328 let result = match (symbol.description(&file), symbol.docs(&file)) {
329 (Some(desc), Some(docs)) => Some("```rust\n".to_string() + &*desc + "\n```\n\n" + &*docs), 329 (Some(desc), Some(docs)) => {
330 Some("```rust\n".to_string() + &*desc + "\n```\n\n" + &*docs)
331 }
330 (Some(desc), None) => Some("```rust\n".to_string() + &*desc + "\n```"), 332 (Some(desc), None) => Some("```rust\n".to_string() + &*desc + "\n```"),
331 (None, Some(docs)) => Some(docs), 333 (None, Some(docs)) => Some(docs),
332 _ => None, 334 _ => None,
diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs
index 7d9234045..f18a1305d 100644
--- a/crates/ra_lsp_server/src/main_loop/handlers.rs
+++ b/crates/ra_lsp_server/src/main_loop/handlers.rs
@@ -530,7 +530,6 @@ pub fn handle_hover(
530 Ok(None) 530 Ok(None)
531} 531}
532 532
533
534/// Test doc comment 533/// Test doc comment
535pub fn handle_prepare_rename( 534pub fn handle_prepare_rename(
536 world: ServerWorld, 535 world: ServerWorld,