Skip to content

Commit dccd603

Browse files
authored
Update Setfield.jl
1 parent c86ca0b commit dccd603

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/Setfield.jl

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ __precompile__(true)
22
module Setfield
33
using MacroTools
44
using MacroTools: isstructdef, splitstructdef, postwalk
5-
using Requires: @require
5+
using StaticArraysCore
66

77
if VERSION < v"1.1-"
88
using Future: copy!
@@ -27,11 +27,4 @@ for n in names(Setfield, all=true)
2727
end
2828
end
2929

30-
function __init__()
31-
@require StaticArrays="90137ffa-7385-5640-81b9-e52037218182" begin
32-
setindex(a::StaticArrays.StaticArray, args...) =
33-
Base.setindex(a, args...)
34-
end
35-
end
36-
3730
end

0 commit comments

Comments
 (0)