Skip to content

Commit

Permalink
Removed unwrap in concrete_check
Browse files Browse the repository at this point in the history
  • Loading branch information
kenarab committed Jun 7, 2024
1 parent 736237d commit 41f620d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/concrete_check/src/linearity_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,15 +268,13 @@ impl LinearityChecker {
context: &str,
) -> Result<StateTbl, LinearityError> {
// Assuming you have a method to get all variable names and types
//let vars = &mut self.state_tbl.vars;
//TODO check if we can avoid cloning
let vars = state_tbl.vars.clone();
println!("Check_expr vars {:?}", vars);
for (name, _info) in vars.iter() {
//self.check_var_in_expr(depth, &name, &info.ty, expr)?;
state_tbl = self
.check_var_in_expr(state_tbl, depth, name, expr, context)
.unwrap();
.expect("Linearity error");
}
Ok(state_tbl)
}
Expand Down

0 comments on commit 41f620d

Please sign in to comment.