Skip to content

Commit

Permalink
fix: a couple clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwalker committed Aug 9, 2024
1 parent f266e4b commit d70cd76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion parser/src/sema/semantic_analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1386,7 +1386,7 @@ impl<'a> SemanticAnalysis<'a> {
// and we will have already validated the reference
let (import_id, module_id) = self.imported.get_key_value(&id).unwrap();
let module = self.library.get(module_id).unwrap();
if module.evaluators.get(&id.id()).is_none() {
if !module.evaluators.contains_key(&id.id()) {
self.invalid_constraint(id.span(), "calls in constraints must be to evaluator functions")
.with_secondary_label(import_id.span(), "the function imported here is not an evaluator")
.emit();
Expand Down
6 changes: 3 additions & 3 deletions parser/src/transforms/inlining.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ impl<'p> Pass for Inlining<'p> {
.collect();

// We'll be referencing the trace configuration during inlining, so keep a copy of it
self.trace = program.trace_columns.clone();
self.trace.clone_from(&program.trace_columns);
// Same with the random values
self.random_values = program.random_values.clone();
self.random_values.clone_from(&program.random_values);
// And the public inputs
self.public_inputs = program.public_inputs.clone();
self.public_inputs.clone_from(&program.public_inputs);

// Add all of the local bindings visible in the root module, except for
// constants and periodic columns, which by this point have been rewritten
Expand Down

0 comments on commit d70cd76

Please sign in to comment.