From dbd02546b9cea2a2633cd0414040980f8e4a29e1 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 23 May 2019 20:25:55 +0300 Subject: fix signature --- crates/ra_hir/src/code_model_api.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/ra_hir') diff --git a/crates/ra_hir/src/code_model_api.rs b/crates/ra_hir/src/code_model_api.rs index 970b78412..e4089afe7 100644 --- a/crates/ra_hir/src/code_model_api.rs +++ b/crates/ra_hir/src/code_model_api.rs @@ -35,19 +35,19 @@ pub struct CrateDependency { } impl Crate { - pub fn crate_id(&self) -> CrateId { + pub fn crate_id(self) -> CrateId { self.crate_id } - pub fn dependencies(&self, db: &impl DefDatabase) -> Vec { + pub fn dependencies(self, db: &impl DefDatabase) -> Vec { self.dependencies_impl(db) } - pub fn root_module(&self, db: &impl DefDatabase) -> Option { + pub fn root_module(self, db: &impl DefDatabase) -> Option { self.root_module_impl(db) } - pub fn edition(&self, db: &impl DefDatabase) -> Edition { + pub fn edition(self, db: &impl DefDatabase) -> Edition { let crate_graph = db.crate_graph(); crate_graph.edition(self.crate_id) } -- cgit v1.2.3