summaryrefslogtreecommitdiff
path: root/support/texlab/crates/symbols/src/workspace/sort.rs
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/crates/symbols/src/workspace/sort.rs')
-rw-r--r--support/texlab/crates/symbols/src/workspace/sort.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/support/texlab/crates/symbols/src/workspace/sort.rs b/support/texlab/crates/symbols/src/workspace/sort.rs
index 75d80a02eb..adf455aa81 100644
--- a/support/texlab/crates/symbols/src/workspace/sort.rs
+++ b/support/texlab/crates/symbols/src/workspace/sort.rs
@@ -1,4 +1,4 @@
-use base_db::{graph, Document, Workspace};
+use base_db::{Document, Workspace};
use itertools::Itertools;
use url::Url;
@@ -26,8 +26,8 @@ impl<'a> From<&'a Workspace> for ProjectOrdering<'a> {
})
.chain(workspace.iter())
.flat_map(|document| {
- let graph = graph::Graph::new(workspace, document);
- graph.preorder().rev().collect_vec()
+ let graph = &workspace.graphs()[&document.uri];
+ graph.preorder(workspace).rev().collect_vec()
})
.unique()
.collect_vec();