Skip to content

Commit

Permalink
Format and fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-koch committed Dec 10, 2024
1 parent e87a758 commit afbe337
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions hugr-llvm/src/extension/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ use hugr_core::extension::prelude::{ERROR_TYPE_NAME, STRING_TYPE_NAME};
use hugr_core::{
extension::{
prelude::{
self, error_type,
self,
array::{ArrayRepeat, ArrayScan},
ArrayOp, ArrayOpDef, ConstError, ConstExternalSymbol, ConstString,
error_type, ArrayOp, ArrayOpDef, ConstError, ConstExternalSymbol, ConstString,
ConstUsize, MakeTuple, TupleOpDef, UnpackTuple, ARRAY_TYPE_NAME,
},
simple_op::MakeExtensionOp as _,
Expand Down
7 changes: 3 additions & 4 deletions hugr-llvm/src/extension/prelude/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,8 @@ mod test {
builder::{Dataflow, DataflowSubContainer, SubContainer},
extension::{
prelude::{
self, array::ArrayScan, array_type, bool_t, option_type, usize_t, ConstUsize, UnwrapBuilder as _,

self, array::ArrayScan, array_type, bool_t, option_type, usize_t, ConstUsize,
UnwrapBuilder as _,
},
ExtensionRegistry,
},
Expand Down Expand Up @@ -999,8 +999,7 @@ mod test {
// We build a HUGR that:
// - Creates an array [1, 2, 3, ..., size]
// - Maps a function that increments each element by `inc`
// - Returns the sum of the

// - Returns the sum of the array elements
let int_ty = int_type(6);
let hugr = SimpleHugrConfig::new()
.with_outs(int_ty.clone())
Expand Down

0 comments on commit afbe337

Please sign in to comment.