From dab8870f5c6d90ea1a327037825dc87a46778045 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Fri, 23 Oct 2020 12:10:22 +0200 Subject: Reorder items --- crates/cfg/src/dnf.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'crates') diff --git a/crates/cfg/src/dnf.rs b/crates/cfg/src/dnf.rs index a08c307da..7ee7b0062 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 { -- cgit v1.2.3