From 5eedc8e9080afe1d7fa00d9577343fe5aa25a93d Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 22 Jun 2026 09:22:25 -0700 Subject: Attempted fixes. Maybe made it too C++ish --- src/lib.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 9867615..162c30c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,7 +7,7 @@ mod lexer; mod parser; mod position; mod error; -mod context; +pub mod context; pub use error::{CrimError,CrimResult}; pub use position::*; @@ -213,10 +213,8 @@ fn exec<'a>(input: &StatefulContext<'a>, tokens: &Vec, buf: &mut String) } Token::If(ident,code,other) => { if let Some(value) = input.get_value( &ident ) && - let MappedValue::Bool(b) = value && - b { - - exec(input, code, buf)? + let MappedValue::Bool(b) = value && b { + exec(input, code, buf)? } else { exec(input, other, buf)? } -- cgit v1.2.3