Skip to content

Commit

Permalink
style(test): Avoid unnecessary file access
Browse files Browse the repository at this point in the history
Also avoids an unnecessary `.clone()`.
  • Loading branch information
jan-ferdinand committed Jun 7, 2024
1 parent 0ac5c37 commit 3aa95dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion triton-vm/src/table/master_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1499,10 +1499,10 @@ mod tests {
&new_spec[stop..]
);
}
fs::write(spec_path, new_spec.clone()).unwrap();

if current_spec != new_spec {
println!("Updated arithmetization overview to be:\n\n{new_spec}");
fs::write(spec_path, new_spec).unwrap();
panic!("The arithmetization overview was updated. Please commit the changes.");
}
}
Expand Down

0 comments on commit 3aa95dd

Please sign in to comment.