From 44a9d4cd5f5ba55e8f33bbaf5929756e2fe31680 Mon Sep 17 00:00:00 2001 From: Avik Pal Date: Tue, 19 Mar 2024 09:00:45 -0400 Subject: [PATCH] Use `adapt` inside `adapt_structure` (#252) --- 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