diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-12-12 17:29:20 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-12 17:29:20 +0000 |
commit | 10f633283180d513138d0d969eceba96e3ce9f96 (patch) | |
tree | e53212d4569e73c7337bb205e937174f425fda5b /crates/cfg | |
parent | 479d1f7eec22c3564867223e2093f14774092528 (diff) | |
parent | 26a1675764c9f96cc96d75d2129dd6c828b8df51 (diff) |
Merge #6846
6846: Remove some redundant allocations r=kjeremy a=kjeremy
Co-authored-by: Jeremy Kolb <[email protected]>
Diffstat (limited to 'crates/cfg')
-rw-r--r-- | crates/cfg/src/dnf.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/cfg/src/dnf.rs b/crates/cfg/src/dnf.rs index 580c9a9a2..30f4bcdf7 100644 --- a/crates/cfg/src/dnf.rs +++ b/crates/cfg/src/dnf.rs | |||
@@ -30,7 +30,7 @@ impl DnfExpr { | |||
30 | pub fn new(expr: CfgExpr) -> Self { | 30 | pub fn new(expr: CfgExpr) -> Self { |
31 | let builder = Builder { expr: DnfExpr { conjunctions: Vec::new() } }; | 31 | let builder = Builder { expr: DnfExpr { conjunctions: Vec::new() } }; |
32 | 32 | ||
33 | builder.lower(expr.clone()) | 33 | builder.lower(expr) |
34 | } | 34 | } |
35 | 35 | ||
36 | /// Computes a list of present or absent atoms in `opts` that cause this expression to evaluate | 36 | /// Computes a list of present or absent atoms in `opts` that cause this expression to evaluate |