Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
jfecher committed Jul 30, 2024
1 parent 7a87785 commit ccaad52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fn split_first<T, let N: u32>(array: [T; N]) -> (T, [T; N - 1]) {
std::static_assert(N != 0, "split_first called on empty array");
let mut new_array: [T; N - 1] = std::unsafe::zeroed();

for i in 0 .. N - 1 {
for i in 0..N - 1 {
new_array[i] = array[i + 1];
}

Expand All @@ -24,7 +24,7 @@ fn push<let N: u32>(array: [Field; N], element: Field) -> [Field; N + 1] {
let mut result: [_; N + 1] = std::unsafe::zeroed();
result[array.len()] = element;

for i in 0 .. array.len() {
for i in 0..array.len() {
result[i] = array[i];
}

Expand Down
2 changes: 1 addition & 1 deletion tooling/lsp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ fn prepare_package_from_source_string() {
let mut state = LspState::new(&client, acvm::blackbox_solver::StubbedBlackBoxSolver);

let (mut context, crate_id) = crate::prepare_source(source.to_string(), &mut state);
let _check_result = noirc_driver::check_crate(&mut context, crate_id, false, false, None);
let _check_result = noirc_driver::check_crate(&mut context, crate_id, &Default::default());
let main_func_id = context.get_main_function(&crate_id);
assert!(main_func_id.is_some());
}

0 comments on commit ccaad52

Please sign in to comment.