Skip to content

Commit

Permalink
Update crates/noirc_driver/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Tom French <[email protected]>
  • Loading branch information
kevaundray and TomAFrench authored Jun 8, 2023
1 parent f687fbb commit 0f22767
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/noirc_driver/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ impl Driver {
contract: Contract,
options: &CompileOptions,
) -> Result<CompiledContract, Vec<FileDiagnostic>> {
let mut functions = vec![];
let mut errs = vec![];
let mut functions = Vec::new();
let mut errs = Vec::new();
for function_id in &contract.functions {
let name = self.function_name(*function_id).to_owned();
let function = match self.compile_no_check(options, *function_id) {
Expand Down

0 comments on commit 0f22767

Please sign in to comment.