diff options
-rw-r--r-- | crates/ra_project_model/src/cargo_workspace.rs | 8 |
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)] |
29 | pub struct CargoFeatures { | 29 | pub 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 | ||
41 | impl 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)] |
42 | pub struct Package(RawId); | 48 | pub struct Package(RawId); |
43 | impl_arena_id!(Package); | 49 | impl_arena_id!(Package); |