Skip to content

Commit 468fed9

Browse files
Merge pull request #380 from JuliaArrays/adapt
Remove Adapt StaticArray piracy
2 parents b606399 + 4328ed6 commit 468fed9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ext/ArrayInterfaceStaticArraysCoreExt.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module ArrayInterfaceStaticArraysCoreExt
22

3-
import ArrayInterface, Adapt
3+
import ArrayInterface
44
using LinearAlgebra
55
isdefined(Base, :get_extension) ? (import StaticArraysCore) : (import ..StaticArraysCore)
66

@@ -29,6 +29,4 @@ function ArrayInterface.restructure(x::StaticArraysCore.SArray{S,T,N}, y::Static
2929
end
3030
ArrayInterface.restructure(x::StaticArraysCore.SArray{S}, y) where {S} = StaticArraysCore.SArray{S}(y)
3131

32-
Adapt.adapt_storage(::Type{<:StaticArraysCore.SArray{S}}, xs::Array) where {S} = SArray{S}(xs)
33-
3432
end

0 commit comments

Comments
 (0)