From c9cd6aa370667783292de3bc580e0503a409e453 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 30 Oct 2019 13:10:38 +0300 Subject: Move ids to hir_def crate --- crates/ra_ide_api/src/impls.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_ide_api/src/impls.rs') diff --git a/crates/ra_ide_api/src/impls.rs b/crates/ra_ide_api/src/impls.rs index 7fc1b1efa..b899ed3a5 100644 --- a/crates/ra_ide_api/src/impls.rs +++ b/crates/ra_ide_api/src/impls.rs @@ -51,7 +51,7 @@ fn impls_for_def( } }; - let krate = module.krate(db)?; + let krate = module.krate(); let impls = db.impls_in_crate(krate); Some( @@ -72,7 +72,7 @@ fn impls_for_trait( let src = hir::Source { file_id: position.file_id.into(), ast: node.clone() }; let tr = hir::Trait::from_source(db, src)?; - let krate = module.krate(db)?; + let krate = module.krate(); let impls = db.impls_in_crate(krate); Some( -- cgit v1.2.3