From deab4caa7b1ba81c1b7e6561bc270bbde6467f13 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 12 Jul 2019 19:41:13 +0300 Subject: make Parse fields private this is in preparation for the new rowan API --- crates/ra_ide_api/src/status.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_ide_api/src/status.rs') diff --git a/crates/ra_ide_api/src/status.rs b/crates/ra_ide_api/src/status.rs index 1bcba0b8b..ce27f5ae2 100644 --- a/crates/ra_ide_api/src/status.rs +++ b/crates/ra_ide_api/src/status.rs @@ -87,7 +87,7 @@ impl FromIterator> for SyntaxTreeStats { let mut res = SyntaxTreeStats::default(); for entry in iter { res.total += 1; - if let Some(tree) = entry.value.as_ref().map(|it| &it.tree) { + if let Some(tree) = entry.value.as_ref().map(|it| it.tree()) { res.retained += 1; res.retained_size += tree.syntax().memory_size_of_subtree(); } -- cgit v1.2.3