aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_project_model/src
diff options
context:
space:
mode:
authorveetaha <[email protected]>2020-04-01 11:40:40 +0100
committerveetaha <[email protected]>2020-04-02 19:09:03 +0100
commit6190caeeaedd026e02640fb30691d835d72a8899 (patch)
tree95e41aecd4e6a2da586dffcca70e98877a491896 /crates/ra_project_model/src
parentbef899aa78f65dbf4ee0d304c171ba02e101a685 (diff)
Migrate to privacy as per review commets
Diffstat (limited to 'crates/ra_project_model/src')
-rw-r--r--crates/ra_project_model/src/lib.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/crates/ra_project_model/src/lib.rs b/crates/ra_project_model/src/lib.rs
index ec8574952..0ab64a1e0 100644
--- a/crates/ra_project_model/src/lib.rs
+++ b/crates/ra_project_model/src/lib.rs
@@ -58,9 +58,9 @@ pub enum ProjectWorkspace {
58#[derive(Clone)] 58#[derive(Clone)]
59pub struct PackageRoot { 59pub struct PackageRoot {
60 /// Path to the root folder 60 /// Path to the root folder
61 pub path: PathBuf, 61 path: PathBuf,
62 /// Is a member of the current workspace 62 /// Is a member of the current workspace
63 pub is_member: bool, 63 is_member: bool,
64} 64}
65impl PackageRoot { 65impl PackageRoot {
66 pub fn new_member(path: PathBuf) -> PackageRoot { 66 pub fn new_member(path: PathBuf) -> PackageRoot {
@@ -69,6 +69,12 @@ impl PackageRoot {
69 pub fn new_non_member(path: PathBuf) -> PackageRoot { 69 pub fn new_non_member(path: PathBuf) -> PackageRoot {
70 Self { path, is_member: false } 70 Self { path, is_member: false }
71 } 71 }
72 pub fn path(&self) -> &Path {
73 &self.path
74 }
75 pub fn is_member(&self) -> bool {
76 self.is_member
77 }
72} 78}
73 79
74impl ProjectWorkspace { 80impl ProjectWorkspace {