From f720855e1e45985463e31e0a6a2a76bb6ffd1cfa Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 14 Dec 2019 16:45:14 +0100 Subject: Use all-features by default --- crates/ra_project_model/src/cargo_workspace.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'crates/ra_project_model/src') 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 { pub(crate) workspace_root: PathBuf, } -#[derive(Deserialize, Clone, Debug, PartialEq, Eq, Default)] +#[derive(Deserialize, Clone, Debug, PartialEq, Eq)] #[serde(rename_all = "camelCase", default)] pub struct CargoFeatures { /// Do not activate the `default` feature. @@ -38,6 +38,12 @@ pub struct CargoFeatures { pub features: Vec, } +impl Default for CargoFeatures { + fn default() -> Self { + CargoFeatures { no_default_features: false, all_features: true, features: Vec::new() } + } +} + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] pub struct Package(RawId); impl_arena_id!(Package); -- cgit v1.2.3