From 5ed5a542fb6741b643c07855625cfd1531c10e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Mon, 25 Jan 2021 14:12:53 +0200 Subject: Derive Default on ItemTree --- crates/hir_def/src/item_tree/lower.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/hir_def/src/item_tree/lower.rs') diff --git a/crates/hir_def/src/item_tree/lower.rs b/crates/hir_def/src/item_tree/lower.rs index ce470fc3b..8a71376b9 100644 --- a/crates/hir_def/src/item_tree/lower.rs +++ b/crates/hir_def/src/item_tree/lower.rs @@ -43,7 +43,7 @@ pub(super) struct Ctx { impl Ctx { pub(super) fn new(db: &dyn DefDatabase, hygiene: Hygiene, file: HirFileId) -> Self { Self { - tree: ItemTree::empty(), + tree: ItemTree::default(), hygiene, file, source_ast_id_map: db.ast_id_map(file), -- cgit v1.2.3