diff options
author | Aleksey Kladov <[email protected]> | 2018-08-11 12:44:12 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-11 12:44:12 +0100 |
commit | f2291d6a760f8a2d15074b5874facb03f5f838bc (patch) | |
tree | 00faff0402a675c4a041966e71b1789bfb086dcc /crates/cli/src/main.rs | |
parent | 7afd84febc76a75a3ed1be75c57ff35d7b8b3de6 (diff) |
doc symbols
Diffstat (limited to 'crates/cli/src/main.rs')
-rw-r--r-- | crates/cli/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index 863aeb99d..b6e9139c7 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs | |||
@@ -10,7 +10,7 @@ use std::{ | |||
10 | }; | 10 | }; |
11 | use clap::{App, Arg, SubCommand}; | 11 | use clap::{App, Arg, SubCommand}; |
12 | use tools::collect_tests; | 12 | use tools::collect_tests; |
13 | use libeditor::{File, syntax_tree, symbols}; | 13 | use libeditor::{File, syntax_tree, file_symbols}; |
14 | 14 | ||
15 | type Result<T> = ::std::result::Result<T, failure::Error>; | 15 | type Result<T> = ::std::result::Result<T, failure::Error>; |
16 | 16 | ||
@@ -51,7 +51,7 @@ fn main() -> Result<()> { | |||
51 | } | 51 | } |
52 | ("symbols", _) => { | 52 | ("symbols", _) => { |
53 | let file = file()?; | 53 | let file = file()?; |
54 | for s in symbols(&file) { | 54 | for s in file_symbols(&file) { |
55 | println!("{:?}", s); | 55 | println!("{:?}", s); |
56 | } | 56 | } |
57 | } | 57 | } |