diff options
author | uHOOCCOOHu <[email protected]> | 2019-10-02 18:38:56 +0100 |
---|---|---|
committer | uHOOCCOOHu <[email protected]> | 2019-10-02 19:28:03 +0100 |
commit | e0100e63ae2e873f119b905ac77c3355ffb351b0 (patch) | |
tree | 25d799c1e52a32af80f603f4e6103e0969c5b6a8 /crates/ra_cfg/src/cfg_expr.rs | |
parent | 43f09ad36ccc1c53c78a66274693e53161c9b2fa (diff) |
Optimize
Diffstat (limited to 'crates/ra_cfg/src/cfg_expr.rs')
-rw-r--r-- | crates/ra_cfg/src/cfg_expr.rs | 2 |
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 | ||
16 | impl CfgExpr { | 16 | impl 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)), |