diff --git a/crates/cfg/src/dnf.rs b/crates/cfg/src/dnf.rs index a08c307dac..7ee7b00628 100644 --- a/crates/cfg/src/dnf.rs +++ b/crates/cfg/src/dnf.rs @@ -17,6 +17,15 @@ pub struct DnfExpr { conjunctions: Vec, } +struct Conjunction { + literals: Vec, +} + +struct Literal { + negate: bool, + var: Option, // None = Invalid +} + impl DnfExpr { pub fn new(expr: CfgExpr) -> Self { let builder = Builder { expr: DnfExpr { conjunctions: Vec::new() } }; @@ -133,10 +142,6 @@ impl fmt::Display for DnfExpr { } } -struct Conjunction { - literals: Vec, -} - impl Conjunction { fn new(parts: Vec) -> Self { let mut literals = Vec::new(); @@ -177,11 +182,6 @@ impl fmt::Display for Conjunction { } } -struct Literal { - negate: bool, - var: Option, // None = Invalid -} - impl Literal { fn new(expr: CfgExpr) -> Self { match expr {