Move features into potential_cfg_options
This commit is contained in:
@@ -234,8 +234,8 @@ impl Crate {
|
||||
db.crate_graph()[self.id].cfg_options.clone()
|
||||
}
|
||||
|
||||
pub fn features(&self, db: &dyn HirDatabase) -> Vec<String> {
|
||||
db.crate_graph()[self.id].features.iter().map(|(feat, _)| feat.clone()).collect()
|
||||
pub fn potential_cfg(&self, db: &dyn HirDatabase) -> CfgOptions {
|
||||
db.crate_graph()[self.id].potential_cfg_options.clone()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user