From 26a1675764c9f96cc96d75d2129dd6c828b8df51 Mon Sep 17 00:00:00 2001 From: Jeremy Kolb Date: Sat, 12 Dec 2020 12:27:09 -0500 Subject: Remove some redundant allocations --- crates/cfg/src/dnf.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/cfg/src/dnf.rs') 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 { pub fn new(expr: CfgExpr) -> Self { let builder = Builder { expr: DnfExpr { conjunctions: Vec::new() } }; - builder.lower(expr.clone()) + builder.lower(expr) } /// Computes a list of present or absent atoms in `opts` that cause this expression to evaluate -- cgit v1.2.3