Skip to content

Commit

Permalink
chore: remove leftover printlns
Browse files Browse the repository at this point in the history
  • Loading branch information
divarvel committed May 23, 2024
1 parent 2f2c3d8 commit 4d199c3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions biscuit-auth/src/datalog/expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ impl Binary {
values: &mut HashMap<u32, Term>,
symbols: &mut TemporarySymbolTable,
) -> Result<Term, error::Expression> {
println!("Recursing, values before: {values:?}");
match (self, left, params) {
(Binary::LazyOr, Term::Bool(true), []) => Ok(Term::Bool(true)),
(Binary::LazyOr, Term::Bool(false), []) => {
Expand All @@ -111,11 +110,9 @@ impl Binary {
(Binary::All, Term::Set(set_values), [param]) => {
for value in set_values.iter() {
values.insert(*param, value.clone());
println!("Recursing, values during: {values:?}");
let e = Expression { ops: right.clone() };
let result = e.evaluate(values, symbols);
values.remove(param);
println!("Recursing, values after: {values:?}");
match result? {
Term::Bool(true) => {}
Term::Bool(false) => return Ok(Term::Bool(false)),
Expand All @@ -127,11 +124,9 @@ impl Binary {
(Binary::Any, Term::Set(set_values), [param]) => {
for value in set_values.iter() {
values.insert(*param, value.clone());
println!("Recursing, values during: {values:?}");
let e = Expression { ops: right.clone() };
let result = e.evaluate(values, symbols);
values.remove(param);
println!("Recursing, values after: {values:?}");
match result? {
Term::Bool(false) => {}
Term::Bool(true) => return Ok(Term::Bool(true)),
Expand Down

0 comments on commit 4d199c3

Please sign in to comment.