From e018362dc2bf45d661bb8142cde6a2982c2580cd Mon Sep 17 00:00:00 2001 From: Avik Pal Date: Mon, 18 Mar 2024 14:01:13 -0400 Subject: [PATCH] Use `adapt` inside `adapt_structure` --- ext/ComponentArraysAdaptExt.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/ComponentArraysAdaptExt.jl b/ext/ComponentArraysAdaptExt.jl index 74fa0f65..8e04c0a9 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