Skip to content

Commit 4328ed6

Browse files
Remove Adapt StaticArray piracy
Should be upstreamed and accepted now that package extensions exist.
1 parent 5a58022 commit 4328ed6

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)