diff options
author | Ayomide Bamidele <[email protected]> | 2021-03-31 00:08:10 +0100 |
---|---|---|
committer | Ayomide Bamidele <[email protected]> | 2021-03-31 00:08:10 +0100 |
commit | 276022682b0b4745d44027a2f6c47f5e07cecbc3 (patch) | |
tree | ff0e4cde988fc722cc4792bbd61471e0458a06ff /crates/ide/src/view_hir.rs | |
parent | 95107a7ccfcb27510884e2c4eaeba369854b4787 (diff) |
Gifs and screenshots for features in manual
Diffstat (limited to 'crates/ide/src/view_hir.rs')
-rw-r--r-- | crates/ide/src/view_hir.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ide/src/view_hir.rs b/crates/ide/src/view_hir.rs index f8f3fae3d..7312afe53 100644 --- a/crates/ide/src/view_hir.rs +++ b/crates/ide/src/view_hir.rs | |||
@@ -10,6 +10,7 @@ use syntax::{algo::find_node_at_offset, ast, AstNode}; | |||
10 | // | 10 | // |
11 | // | VS Code | **Rust Analyzer: View Hir** | 11 | // | VS Code | **Rust Analyzer: View Hir** |
12 | // |=== | 12 | // |=== |
13 | // image::https://user-images.githubusercontent.com/48062697/113065588-068bdb80-91b1-11eb-9a78-0b4ef1e972fb.gif[] | ||
13 | pub(crate) fn view_hir(db: &RootDatabase, position: FilePosition) -> String { | 14 | pub(crate) fn view_hir(db: &RootDatabase, position: FilePosition) -> String { |
14 | body_hir(db, position).unwrap_or_else(|| "Not inside a function body".to_string()) | 15 | body_hir(db, position).unwrap_or_else(|| "Not inside a function body".to_string()) |
15 | } | 16 | } |