Skip to content

Commit c2d823b

Browse files
committed
Fix construction for other types of containers
1 parent a758af9 commit c2d823b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OperatorEnumConstruction.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ function OperatorEnum(;
218218
)
219219
@assert length(binary_operators) > 0 || length(unary_operators) > 0
220220

221-
binary_operators = convert(Vector{Function}, collect(binary_operators))
222-
unary_operators = convert(Vector{Function}, collect(unary_operators))
221+
binary_operators = Function[op for op in binary_operators]
222+
unary_operators = Function[op for op in unary_operators]
223223

224224
if enable_autodiff
225225
diff_binary_operators = Function[]

0 commit comments

Comments
 (0)