Skip to content

Commit 44a9d4c

Browse files
authored
Use adapt inside adapt_structure (#252)
1 parent 0fe0f85 commit 44a9d4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/ComponentArraysAdaptExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module ComponentArraysAdaptExt
33
using ComponentArrays, Adapt
44

55
function Adapt.adapt_structure(to, x::ComponentArray)
6-
data = Adapt.adapt_structure(to, getdata(x))
6+
data = adapt(to, getdata(x))
77
return ComponentArray(data, getaxes(x))
88
end
99

0 commit comments

Comments
 (0)