aboutsummaryrefslogtreecommitdiff
path: root/crates/cfg
diff options
context:
space:
mode:
authorJeremy Kolb <[email protected]>2020-12-12 17:27:09 +0000
committerJeremy Kolb <[email protected]>2020-12-12 17:27:09 +0000
commit26a1675764c9f96cc96d75d2129dd6c828b8df51 (patch)
treee53212d4569e73c7337bb205e937174f425fda5b /crates/cfg
parent479d1f7eec22c3564867223e2093f14774092528 (diff)
Remove some redundant allocations
Diffstat (limited to 'crates/cfg')
-rw-r--r--crates/cfg/src/dnf.rs2
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