From e98d8cd255ab5c2fee873a58af6c2c3ad561dab4 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 2 Sep 2018 16:36:03 +0300 Subject: nail down runnables --- crates/server/src/project_model.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/server/src/project_model.rs') diff --git a/crates/server/src/project_model.rs b/crates/server/src/project_model.rs index 1c5954dad..12233f258 100644 --- a/crates/server/src/project_model.rs +++ b/crates/server/src/project_model.rs @@ -56,7 +56,7 @@ impl Package { } impl Target { - pub fn pkg(self, ws: &CargoWorkspace) -> Package { + pub fn package(self, ws: &CargoWorkspace) -> Package { ws.tgt(self).pkg } pub fn name(self, ws: &CargoWorkspace) -> &str { @@ -114,7 +114,7 @@ impl CargoWorkspace { pub fn ws_members<'a>(&'a self) -> impl Iterator + 'a { self.ws_members.iter().cloned() } - pub fn target_by_roo(&self, root: &Path) -> Option { + pub fn target_by_root(&self, root: &Path) -> Option { self.packages() .filter_map(|pkg| pkg.targets(self).find(|it| it.root(self) == root)) .next() -- cgit v1.2.3