Skip to content

Commit ed9a3f8

Browse files
committed
Fix @inline thing
1 parent d4aa7cc commit ed9a3f8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/array_interface.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ Base.@propagate_inbounds Base.maybeview(x::ComponentArray, idx...) = _getindex(B
120120
inds = map(i -> i.idx, ci)
121121
axs = map(i -> i.ax, ci)
122122
axs = remove_nulls(axs...)
123-
return :(@inline; ComponentArray(index_fun(getdata(x), $inds...), $axs...))
123+
return :(@inline ComponentArray(index_fun(getdata(x), $inds...), $axs...))
124124
end
125125

126126
@generated function _setindex!(x::ComponentArray, v, idx...)
127127
ci = getindex.(getaxes(x), getval.(idx))
128128
inds = map(i -> i.idx, ci)
129-
return :(@inline; setindex!(getdata(x), v, $inds...))
129+
return :(@inline setindex!(getdata(x), v, $inds...))
130130
end
131131

132132
## Linear Algebra
@@ -143,6 +143,4 @@ end
143143
Base.stride(x::ComponentArray, k) = stride(getdata(x), k)
144144
Base.stride(x::ComponentArray, k::Int64) = stride(getdata(x), k)
145145

146-
ArrayInterface.lu_instance(jac_prototype::ComponentArray) = ArrayInterface.lu_instance(getdata(jac_prototype))
147-
148146
ArrayInterface.parent_type(::Type{ComponentArray{T,N,A,Axes}}) where {T,N,A,Axes} = A

0 commit comments

Comments
 (0)