aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_project_model
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-12-14 15:45:14 +0000
committerAleksey Kladov <[email protected]>2019-12-14 16:05:12 +0000
commitf720855e1e45985463e31e0a6a2a76bb6ffd1cfa (patch)
tree37c265ec95f67cc57747ff4e7d7667344706277d /crates/ra_project_model
parent77db6177658b32f69ad7ebfdef96c1b3b2893fdd (diff)
Use all-features by default
Diffstat (limited to 'crates/ra_project_model')
-rw-r--r--crates/ra_project_model/src/cargo_workspace.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/crates/ra_project_model/src/cargo_workspace.rs b/crates/ra_project_model/src/cargo_workspace.rs
index 4a0437da3..c862d3912 100644
--- a/crates/ra_project_model/src/cargo_workspace.rs
+++ b/crates/ra_project_model/src/cargo_workspace.rs
@@ -24,7 +24,7 @@ pub struct CargoWorkspace {
24 pub(crate) workspace_root: PathBuf, 24 pub(crate) workspace_root: PathBuf,
25} 25}
26 26
27#[derive(Deserialize, Clone, Debug, PartialEq, Eq, Default)] 27#[derive(Deserialize, Clone, Debug, PartialEq, Eq)]
28#[serde(rename_all = "camelCase", default)] 28#[serde(rename_all = "camelCase", default)]
29pub struct CargoFeatures { 29pub struct CargoFeatures {
30 /// Do not activate the `default` feature. 30 /// Do not activate the `default` feature.
@@ -38,6 +38,12 @@ pub struct CargoFeatures {
38 pub features: Vec<String>, 38 pub features: Vec<String>,
39} 39}
40 40
41impl Default for CargoFeatures {
42 fn default() -> Self {
43 CargoFeatures { no_default_features: false, all_features: true, features: Vec::new() }
44 }
45}
46
41#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] 47#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
42pub struct Package(RawId); 48pub struct Package(RawId);
43impl_arena_id!(Package); 49impl_arena_id!(Package);