aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_cfg
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_cfg')
-rw-r--r--crates/ra_cfg/src/cfg_expr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_cfg/src/cfg_expr.rs b/crates/ra_cfg/src/cfg_expr.rs
index efeadf462..811f83048 100644
--- a/crates/ra_cfg/src/cfg_expr.rs
+++ b/crates/ra_cfg/src/cfg_expr.rs
@@ -15,7 +15,7 @@ pub enum CfgExpr {
15 15
16impl CfgExpr { 16impl CfgExpr {
17 /// Fold the cfg by querying all basic `Atom` and `KeyValue` predicates. 17 /// Fold the cfg by querying all basic `Atom` and `KeyValue` predicates.
18 pub fn fold(&self, query: &impl Fn(&SmolStr, Option<&SmolStr>) -> bool) -> Option<bool> { 18 pub fn fold(&self, query: &dyn Fn(&SmolStr, Option<&SmolStr>) -> bool) -> Option<bool> {
19 match self { 19 match self {
20 CfgExpr::Invalid => None, 20 CfgExpr::Invalid => None,
21 CfgExpr::Atom(name) => Some(query(name, None)), 21 CfgExpr::Atom(name) => Some(query(name, None)),