diff --git a/ext/ComponentArraysAdaptExt.jl b/ext/ComponentArraysAdaptExt.jl index 74fa0f6..8e04c0a 100644 --- a/ext/ComponentArraysAdaptExt.jl +++ b/ext/ComponentArraysAdaptExt.jl @@ -3,7 +3,7 @@ module ComponentArraysAdaptExt using ComponentArrays, Adapt function Adapt.adapt_structure(to, x::ComponentArray) - data = Adapt.adapt_structure(to, getdata(x)) + data = adapt(to, getdata(x)) return ComponentArray(data, getaxes(x)) end